Post Reply 
Approximating function derivatives
01-29-2024, 08:43 PM (This post was last modified: 01-29-2024 08:46 PM by Namir.)
Post: #21
RE: Approximating function derivatives
Albert,

I translated your last pseudo-code into Excel VBA. The code works well and gives accurate results With x0 = 6, the code takes 8 iterations (like my Newto'ns version).

The real savings in function callis adapting your fx averaging approach to Halley's method. This way the fx averaging approach will use two function calls per iteration as opposed to 3 function calls when I calculate f(x), f(x+h) and f(x-h).

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


Messages In This Thread
Approximating function derivatives - Pekis - 01-24-2024, 02:31 PM
RE: Approximating function derivatives - Namir - 01-29-2024 08:43 PM



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