We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb9cc9 commit 96bb71dCopy full SHA for 96bb71d
src/my_code.py
@@ -69,8 +69,8 @@ def multiply(self, other: Complex) -> Complex:
69
70
Complex numbers are often multiplied in polar form via
71
c_mul = r_1 * r_2 * e^(theta_1 + theta_2).
72
- In other words the new radius is the product of the incoming radii.
73
- The new angle is given by the sum of the incoming angles.
+ That means that the new radius r_mul is the product of the incoming radii
+ and the new angle theta_mul is given by the sum of the incoming angles.
74
Radius and angle can be converted back to the karthesian form via,
75
x = r_mul * cos(theta_mul),
76
y = r_mul * sin(theta_mul).
0 commit comments