New algorithms for numerical integration and ODE solutions

03152014, 12:40 AM
(This post was last modified: 03152014 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(xh) around x=0, which would lead to an errorgeneating zero slope. Namir 

« Next Oldest  Next Newest »

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