1 write to m_imaginary
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
57m_imaginary = imaginary;
112 references to m_imaginary
System.Runtime.Numerics (112)
System\Numerics\Complex.cs (112)
61public double Imaginary { get { return m_imaginary; } } 64public double Phase { get { return Math.Atan2(m_imaginary, m_real); } } 139return new Complex(-value.m_real, -value.m_imaginary); 144return new Complex(left.m_real + right.m_real, left.m_imaginary + right.m_imaginary); 149return new Complex(left.m_real + right, left.m_imaginary); 154return new Complex(left + right.m_real, right.m_imaginary); 159return new Complex(left.m_real - right.m_real, left.m_imaginary - right.m_imaginary); 164return new Complex(left.m_real - right, left.m_imaginary); 169return new Complex(left - right.m_real, -right.m_imaginary); 175double result_realpart = (left.m_real * right.m_real) - (left.m_imaginary * right.m_imaginary); 176double result_imaginarypart = (left.m_imaginary * right.m_real) + (left.m_real * right.m_imaginary); 184if (!double.IsFinite(left.m_imaginary)) 192if (!double.IsFinite(left.m_imaginary)) 194return new Complex(double.NaN, left.m_imaginary * right); 197return new Complex(left.m_real * right, left.m_imaginary * right); 204if (!double.IsFinite(right.m_imaginary)) 212if (!double.IsFinite(right.m_imaginary)) 214return new Complex(double.NaN, left * right.m_imaginary); 217return new Complex(left * right.m_real, left * right.m_imaginary); 224double b = left.m_imaginary; 226double d = right.m_imaginary; 253if (!double.IsFinite(left.m_imaginary)) 261if (!double.IsFinite(left.m_imaginary)) 263return new Complex(double.NaN, left.m_imaginary / right); 267return new Complex(left.m_real / right, left.m_imaginary / right); 275double d = right.m_imaginary; 292return double.Hypot(value.m_real, value.m_imaginary); 324return new Complex(value.m_real, -value.m_imaginary); 330if (value.m_real == 0 && value.m_imaginary == 0) 339return left.m_real == right.m_real && left.m_imaginary == right.m_imaginary; 344return left.m_real != right.m_real || left.m_imaginary != right.m_imaginary; 354return m_real.Equals(value.m_real) && m_imaginary.Equals(value.m_imaginary); 357public override int GetHashCode() => HashCode.Combine(m_real, m_imaginary); 372handler.AppendFormatted(m_imaginary, format); 380return new Complex(sin * Math.Cosh(value.m_imaginary), cos * Math.Sinh(value.m_imaginary)); 390Complex sin = Sin(new Complex(-value.m_imaginary, value.m_real)); 391return new Complex(sin.m_imaginary, -sin.m_real); 418return new Complex(cos * Math.Cosh(value.m_imaginary), -sin * Math.Sinh(value.m_imaginary)); 424return Cos(new Complex(-value.m_imaginary, value.m_real)); 460double y2 = 2.0 * value.m_imaginary; 463if (Math.Abs(value.m_imaginary) <= 4.0) 478Complex tan = Tan(new Complex(-value.m_imaginary, value.m_real)); 479return new Complex(tan.m_imaginary, -tan.m_real); 606public static bool IsFinite(Complex value) => double.IsFinite(value.m_real) && double.IsFinite(value.m_imaginary); 608public static bool IsInfinity(Complex value) => double.IsInfinity(value.m_real) || double.IsInfinity(value.m_imaginary); 614return new Complex(Math.Log(Abs(value)), Math.Atan2(value.m_imaginary, value.m_real)); 631return FromPolarCoordinates(expReal, value.m_imaginary); 640if (double.IsInfinity(value.m_imaginary)) 642return new Complex(double.PositiveInfinity, value.m_imaginary); 646if (double.IsNaN(value.m_imaginary)) 659if (value.m_imaginary == 0.0) 698double imaginaryCopy = value.m_imaginary; 701if (double.IsInfinity(value.m_imaginary)) 749double valueImaginary = value.m_imaginary; 751double powerImaginary = power.m_imaginary; 770double imaginaryResuilt = factor * value.m_imaginary; 1001public static bool IsComplexNumber(Complex value) => (value.m_real != 0.0) && (value.m_imaginary != 0.0); 1004public static bool IsEvenInteger(Complex value) => (value.m_imaginary == 0) && double.IsEvenInteger(value.m_real); 1007public static bool IsImaginaryNumber(Complex value) => (value.m_real == 0.0) && double.IsRealNumber(value.m_imaginary); 1010public static bool IsInteger(Complex value) => (value.m_imaginary == 0) && double.IsInteger(value.m_real); 1018return (value.m_imaginary == 0.0) && double.IsNegative(value.m_real); 1027return (value.m_imaginary == 0.0) && double.IsNegativeInfinity(value.m_real); 1037&& ((value.m_imaginary == 0.0) || double.IsNormal(value.m_imaginary)); 1041public static bool IsOddInteger(Complex value) => (value.m_imaginary == 0) && double.IsOddInteger(value.m_real); 1049return (value.m_imaginary == 0.0) && double.IsPositive(value.m_real); 1058return (value.m_imaginary == 0.0) && double.IsPositiveInfinity(value.m_real); 1062public static bool IsRealNumber(Complex value) => (value.m_imaginary == 0.0) && double.IsRealNumber(value.m_real); 1070return double.IsSubnormal(value.m_real) || double.IsSubnormal(value.m_imaginary); 1074static bool INumberBase<Complex>.IsZero(Complex value) => (value.m_real == 0.0) && (value.m_imaginary == 0.0); 1114if (double.IsNegative(y.m_imaginary)) 1142else if (double.IsNegative(y.m_imaginary)) 1204if (double.IsNegative(y.m_imaginary)) 1232else if (double.IsNegative(y.m_imaginary)) 1294if (double.IsNegative(y.m_imaginary)) 1320else if (double.IsNegative(y.m_imaginary)) 1386if (double.IsNegative(y.m_imaginary)) 1412else if (double.IsNegative(y.m_imaginary)) 1447result_realpart = double.MultiplyAddEstimate(-left.m_imaginary, right.m_imaginary, result_realpart); 1450double result_imaginarypart = addend.m_imaginary; 1451result_imaginarypart = double.MultiplyAddEstimate(left.m_real, right.m_imaginary, result_imaginarypart); 1452result_imaginarypart = double.MultiplyAddEstimate(left.m_imaginary, right.m_real, result_imaginarypart); 1621if (value.m_imaginary != 0) 1632if (value.m_imaginary != 0) 1643if (value.m_imaginary != 0) 1654double actualResult = (value.m_imaginary != 0) ? double.NaN : value.m_real; 1660Half actualResult = (value.m_imaginary != 0) ? Half.NaN : (Half)value.m_real; 1666if (value.m_imaginary != 0) 1677if (value.m_imaginary != 0) 1688if (value.m_imaginary != 0) 1699if (value.m_imaginary != 0) 1710if (value.m_imaginary != 0) 1721if (value.m_imaginary != 0) 1732if (value.m_imaginary != 0) 1743float actualResult = (value.m_imaginary != 0) ? float.NaN : (float)value.m_real; 1749if (value.m_imaginary != 0) 1760if (value.m_imaginary != 0) 1771if (value.m_imaginary != 0) 1782if (value.m_imaginary != 0) 1793if (value.m_imaginary != 0) 2227m_imaginary.TryFormat(Unsafe.BitCast<Span<TChar>, Span<char>>(destination.Slice(2)), out imaginaryChars, format, provider) : 2228m_imaginary.TryFormat(Unsafe.BitCast<Span<TChar>, Span<byte>>(destination.Slice(2)), out imaginaryChars, format, provider))