Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. double a = this.realPart;
  2. double b = this.imaginaryPart;
  3. double x = c.getReal();
  4. double y = c.getImaginary();
  5.  
  6. double newReal = (a * x + b * y) / (Math.pow(x, 2) + Math.pow(y, 2));
  7. double newImag = (b * x - a * y) / (Math.pow(x, 2) + Math.pow(y, 2));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement