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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)