Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. Complex Trin(Complex obj) {// перевод в трегонаметрическую форму
  3. Complex z = new Complex();
  4. z.Re=obj.Re;
  5. z.Im=obj.Im;
  6. double arg=Math.atan(obj.Im/obj.Re);
  7. double z1 = Math.sqrt((obj.Im*(obj.Im+obj.Re*obj.Re)))*(Math.cos(arg)+Math.sin(arg));
  8. return z;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement