Advertisement
SilLAwNeD

Scilab, courbe function

Nov 15th, 2018
1,303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.20 KB | None | 0 0
  1. function courbe(N)
  2.     t = linspace(0, 2*%pi, N);
  3.     x = 2 * cos(t);
  4.     y = 2 * sin(t);
  5.    
  6.     x2 = linspace(-2, 2, N);
  7.     y2 = exp(x2)
  8.    
  9.     plot(x, y);
  10.     plot(x2, y2, 'r');
  11. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement