Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f=@(x)(sin(x)-cos(x));
- fd=@(x,h)(f(x+h)-f(x))/h;
- for h=-1:-1:-12
- fd(0, 10^h) - (cos(0)+sin(0))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement