Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.17 KB | None | 0 0
  1. //M N
  2. function z=mod(z1)
  3. z=sqrt(z1(1)^2+z1(2)^2)
  4. endfunction
  5. function phi=arg(z1)
  6. if z1(2)<0 then phi=-acos(z1(1)/mod(z1))
  7. else phi=acos(z1(1)/mod(z1))
  8. end
  9. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement