comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Check numerical derivatives
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Check numerical derivatives [message #94535 is a reply to message #94534] Wed, 28 June 2017 07:46 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Wednesday, June 28, 2017 at 4:23:45 AM UTC-4, geo...@gmail.com wrote:

> Your comment 2 was interesting. Is any other way to make it calculate the derivatives of all columns tho?

Well, you can't take the left-sided derivative of the first column because there is no column to the left. But it might be useful to keep the derivative array the same size as the original array. One could use the right-sided derivative for the first column, which would be the same as the left-sided derivative of the second column. --Wayne

F_x = F[1:nx-1,*]-F[0:nx-2,*]
F_x = [F_x[0,*],F_x]

(Of course the three point Lagrangian interpolation of the DERIV() function would be preferable.)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Removing specific elements in an array
Next Topic: 2D histogram color plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:57:09 PDT 2025

Total time taken to generate the page: 0.00464 seconds