Derivatives on HP 42S
|
08-29-2018, 01:52 PM
(This post was last modified: 08-27-2019 10:07 PM by Albert Chan.)
Post: #24
|
|||
|
|||
RE: Derivatives on HP 42S
A blog from the inventor of Complex Step Differentiation Algorithm.
It had a fully worked out example, showing very stable and accurate estimates: https://blogs.mathworks.com/cleve/2013/1...entiation/ Real part of f(x + h*I) is also useful, for getting second derivative (involve subtraction): http://ancs.eng.buffalo.edu/pdf/ancs_pap..._gnc06.pdf Since we already have the value of y = f(x + h*I) of approximate extremum x, we can improve it: Code: from cmath import * 2nd order x = 14.137167 3rd order x = 14.1371669412 Actual x = 14.137166942003920 ... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)