|
|
|
@ -504,9 +504,9 @@ namespace MathNet.Numerics |
|
|
|
/// </summary>
|
|
|
|
public Tuple<Complex32, Complex32, Complex32> CubicRoots() |
|
|
|
{ |
|
|
|
float r = (float)Math.Pow(Magnitude, 1d / 3d); |
|
|
|
float theta = Phase / 3; |
|
|
|
const float shift = (float)Constants.Pi2 / 3; |
|
|
|
float r = (float)Math.Pow(Magnitude, 1d/3d); |
|
|
|
float theta = Phase/3; |
|
|
|
const float shift = (float)Constants.Pi2/3; |
|
|
|
return new Tuple<Complex32, Complex32, Complex32>( |
|
|
|
FromPolarCoordinates(r, theta), |
|
|
|
FromPolarCoordinates(r, theta + shift), |
|
|
|
|