Post Reply 
New algorithms for numerical integration and ODE solutions
03-15-2014, 12:40 AM (This post was last modified: 03-15-2014 03:01 AM by Namir.)
Post: #3
RE: New algorithms for numerical integration and ODE solutions
Dan,

I have coded the approximation for the derivative to be:

f'(x) = (f(x+h) - f(x)) / h

And not the more accurate form:

f'(x) = (f(x+h) - f(x - h)) / 2h

To avoid the case when f(x+h)=f(x-h) around x=0, which would lead to an error-geneating zero slope.

Namir
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New algorithms for numerical integration and ODE solutions - Namir - 03-15-2014 12:40 AM



User(s) browsing this thread: 1 Guest(s)