Advertisement
maxrusmos

Untitled

Mar 7th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. private static Complex Muavr(Complex A) {
  2. double fi_cos = Math.Acos(A.Real / Complex.Abs(A));
  3. double fi_sin = Math.Asin(A.Imaginary / Complex.Abs(A));
  4.  
  5. Complex FirtsRoot = new Complex(Math.Pow(Complex.Abs(A), 1.0 / 3.0) * Math.Cos(1.0 / 3.0 * fi_cos),
  6. Math.Pow(Complex.Abs(A), 1.0 / 3.0) * Math.Sin(1.0 / 3.0 * fi_sin));
  7. return FirtsRoot;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement