Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f(x) = cos(x)
- set logscale
- derr(x) = -sin(x)
- G(h,x) = abs( ( f(x+h)−f(x) )/h - derr(x) )
- B(h,x) = abs( ( f(x+h) − f(x−h) )/(2*h) - derr(x) )
- D(h,x) = abs( ( −f(x+2*h)+8f(x+h)−8f(x−h)+f(x−2*h) )/( 12*h) - derr(x) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement