Guest User

Untitled

a guest
Jan 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.26 KB | None | 0 0
  1. x = 0:0.001:1.01;
  2. h = -0.01:0.001:0.01;
  3. x0 = 1;
  4. pochodna = [];
  5.  
  6. for i = 1:length(h)
  7. pochodna = [pochodna, (exp(x0+h(i)) - exp(x0))/h(i);];
  8. end
  9.  
  10. t = x0+h(1):0.001:x0+h(length(h));
  11. plot(t,pochodna,'g');
  12. hold on;
  13. plot(x,exp(x),'b');
  14. axis([0.95 1.05 2.7 2.74]);
Add Comment
Please, Sign In to add comment