Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double a = this.realPart;
- double b = this.imaginaryPart;
- double x = c.getReal();
- double y = c.getImaginary();
- double newReal = (a * x + b * y) / (Math.pow(x, 2) + Math.pow(y, 2));
- double newImag = (b * x - a * y) / (Math.pow(x, 2) + Math.pow(y, 2));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement