Advertisement
Guest User

Untitled

a guest
Jan 29th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. f(x) = cos(x)
  2. set logscale
  3. derr(x) = -sin(x)
  4. G(h,x) = abs( ( f(x+h)−f(x) )/h - derr(x) )
  5. B(h,x) = abs( ( f(x+h) − f(x−h) )/(2*h) - derr(x) )
  6. D(h,x) = abs( ( −f(x+2*h)+8f(x+h)−8f(x−h)+f(x2*h) )/( 12*h) - derr(x) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement