diff --git a/src/Managed/Complex.cs b/src/Managed/Complex.cs index 5257a4a1..6e666770 100644 --- a/src/Managed/Complex.cs +++ b/src/Managed/Complex.cs @@ -211,7 +211,7 @@ namespace MathNet.Numerics /// true if this instance is zero; otherwise, false. public bool IsZero { - get { throw new NotImplementedException(); } // return Number.AlmostZero(real) && Number.AlmostZero(imag); } + get { return _real.AlmostZero() && _imag.AlmostZero(); } } /// @@ -220,7 +220,7 @@ namespace MathNet.Numerics /// true if this instance is one; otherwise, false. public bool IsOne { - get { throw new NotImplementedException(); } // return Number.AlmostEqual(real, 1) && Number.AlmostZero(imag); } + get { return _real.AlmostEqual(1.0) && _imag.AlmostZero(); } } ///