139 instantiations of Complex
System.Runtime.Numerics (139)
System\Numerics\Complex.cs (41)
165Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) * new Complex<double>(right.m_real, right.m_imaginary); 171Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) * right; 177Complex<double> result = left * new Complex<double>(right.m_real, right.m_imaginary); 183Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) / new Complex<double>(right.m_real, right.m_imaginary); 189Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) / right; 195Complex<double> result = left / new Complex<double>(right.m_real, right.m_imaginary); 249=> new Complex<double>(m_real, m_imaginary).ToString(format, provider); 253Complex<double> result = Complex<double>.Sin(new Complex<double>(value.m_real, value.m_imaginary)); 259Complex<double> result = Complex<double>.Sinh(new Complex<double>(value.m_real, value.m_imaginary)); 265Complex<double> result = Complex<double>.Asin(new Complex<double>(value.m_real, value.m_imaginary)); 271Complex<double> result = Complex<double>.Cos(new Complex<double>(value.m_real, value.m_imaginary)); 277Complex<double> result = Complex<double>.Cosh(new Complex<double>(value.m_real, value.m_imaginary)); 283Complex<double> result = Complex<double>.Acos(new Complex<double>(value.m_real, value.m_imaginary)); 289Complex<double> result = Complex<double>.Tan(new Complex<double>(value.m_real, value.m_imaginary)); 295Complex<double> result = Complex<double>.Tanh(new Complex<double>(value.m_real, value.m_imaginary)); 301Complex<double> result = Complex<double>.Atan(new Complex<double>(value.m_real, value.m_imaginary)); 313Complex<double> result = Complex<double>.Log(new Complex<double>(value.m_real, value.m_imaginary)); 324Complex<double> result = Complex<double>.Log10(new Complex<double>(value.m_real, value.m_imaginary)); 330Complex<double> result = Complex<double>.Exp(new Complex<double>(value.m_real, value.m_imaginary)); 336Complex<double> result = Complex<double>.Sqrt(new Complex<double>(value.m_real, value.m_imaginary)); 342Complex<double> result = Complex<double>.Pow(new Complex<double>(value.m_real, value.m_imaginary), new Complex<double>(power.m_real, power.m_imaginary)); 664Complex<double> result = Complex<double>.MaxMagnitude(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 671Complex<double> result = Complex<double>.MaxMagnitudeNumber(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 678Complex<double> result = Complex<double>.MinMagnitude(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 685Complex<double> result = Complex<double>.MinMagnitudeNumber(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 692Complex<double> result = Complex<double>.MultiplyAddEstimate(new Complex<double>(left.m_real, left.m_imaginary), new Complex<double>(right.m_real, right.m_imaginary), new Complex<double>(addend.m_real, addend.m_imaginary)); 770result = (TOther)(object)new Complex<double>(value.m_real, value.m_imaginary); 774return Complex<double>.TryConvertToCheckedCore(new Complex<double>(value.m_real, value.m_imaginary), out result); 783result = (TOther)(object)new Complex<double>(value.m_real, value.m_imaginary); 787return Complex<double>.TryConvertToSaturatingCore(new Complex<double>(value.m_real, value.m_imaginary), out result); 796result = (TOther)(object)new Complex<double>(value.m_real, value.m_imaginary); 800return Complex<double>.TryConvertToTruncatingCore(new Complex<double>(value.m_real, value.m_imaginary), out result);
System\Numerics\Complex.Generic.cs (98)
26public static Complex<T> Zero => new(T.Zero, T.Zero); 27public static Complex<T> One => new(T.One, T.Zero); 28public static Complex<T> ImaginaryOne => new(T.Zero, T.One); 29public static Complex<T> NaN => new(T.NaN, T.NaN); 30public static Complex<T> Infinity => new(T.PositiveInfinity, T.PositiveInfinity); 62return new Complex<T>(magnitude * cos, magnitude * sin); 132return new Complex<T>(-value.m_real, -value.m_imaginary); 137return new Complex<T>(left.m_real + right.m_real, left.m_imaginary + right.m_imaginary); 142return new Complex<T>(left.m_real + right, left.m_imaginary); 147return new Complex<T>(left + right.m_real, right.m_imaginary); 152return new Complex<T>(left.m_real - right.m_real, left.m_imaginary - right.m_imaginary); 157return new Complex<T>(left.m_real - right, left.m_imaginary); 162return new Complex<T>(left - right.m_real, -right.m_imaginary); 182return new Complex<T>(x, y); 264return new Complex<T>(x, y); 271return left * new Complex<T>(right, T.Zero); 276return new Complex<T>(left, T.Zero) * right; 314return new Complex<T>(x, y); 347return new Complex<T>(x, y); 354return left / new Complex<T>(right, T.Zero); 361return new Complex<T>(left, T.Zero) / right; 397return new Complex<T>(value.m_real, -value.m_imaginary); 455Complex<T> sinh = Sinh(new Complex<T>(-value.m_imaginary, value.m_real)); 456return new Complex<T>(sinh.m_imaginary, -sinh.m_real); 464return new Complex<T>(sin * T.Cosh(value.m_imaginary), cos * T.Sinh(value.m_imaginary)); 478return (imaginary == T.Zero) ? new Complex<T>(real, imaginary) : new Complex<T>(T.NaN, T.NaN); 485return new Complex<T>(real, imaginary); 491return new Complex<T>(real, T.NaN); 496return new Complex<T>(T.Sinh(real) * cosInf, T.Cosh(real) * sinInf); 502return (real == T.Zero) ? new Complex<T>(real, T.NaN) : new Complex<T>(T.NaN, T.NaN); 506Complex<T> sin = Sin(new Complex<T>(-imaginary, real)); 507return new Complex<T>(sin.m_imaginary, -sin.m_real); 516return new Complex<T>(s.m_imaginary, -s.m_real); 541return new Complex<T>(u, v); 563return new Complex<T>(T.NaN, b); 578return new Complex<T>(re, im); 586return Cosh(new Complex<T>(-value.m_imaginary, value.m_real)); 593return new Complex<T>(cos * T.Cosh(value.m_imaginary), -sin * T.Sinh(value.m_imaginary)); 607return (imaginary == T.Zero) ? new Complex<T>(T.NaN, imaginary) : new Complex<T>(T.NaN, T.NaN); 615return new Complex<T>(T.PositiveInfinity, imag); 621return new Complex<T>(T.PositiveInfinity, T.NaN); 626return new Complex<T>(T.Cosh(real) * cosInf, T.Sinh(real) * sinInf); 632return (real == T.Zero) ? new Complex<T>(T.NaN, T.CopySign(T.Zero, real)) : new Complex<T>(T.NaN, T.NaN); 636return Cos(new Complex<T>(-imaginary, real)); 668return new Complex<T>(u, v); 719return new Complex<T>(re, im); 727Complex<T> tanh = Tanh(new Complex<T>(-value.m_imaginary, value.m_real)); 728return new Complex<T>(tanh.m_imaginary, -tanh.m_real); 748return new Complex<T>(sin / D, T.Sinh(y2) / D); 753return new Complex<T>(sin / cosh / D, T.Tanh(y2) / D); 768return (imaginary == T.Zero) ? new Complex<T>(real, imaginary) : new Complex<T>(T.NaN, T.NaN); 778return new Complex<T>(re, T.CopySign(T.Zero, sin * cos)); 780return new Complex<T>(re, T.CopySign(T.Zero, imaginary)); 786return (real == T.Zero) ? new Complex<T>(real, T.NaN) : new Complex<T>(T.NaN, T.NaN); 790Complex<T> tan = Tan(new Complex<T>(-imaginary, real)); 791return new Complex<T>(tan.m_imaginary, -tan.m_real); 800return new Complex<T>(t.m_imaginary, -t.m_real); 803Complex<T> two = new(T.CreateChecked(2), T.Zero); 845return new Complex<T>(re, im); 939return new Complex<T>(T.Log(Abs(value)), T.Atan2(value.m_imaginary, value.m_real)); 944return Log(value) / Log(new Complex<T>(baseValue, T.Zero)); 970return new Complex<T>(T.Zero, T.Zero); 979return new Complex<T>(real, imaginary); 985return new Complex<T>(T.PositiveInfinity, T.NaN); 993return (imaginary == T.Zero) ? new Complex<T>(T.NaN, imaginary) : new Complex<T>(T.NaN, T.NaN); 1012return new Complex<T>(T.PositiveInfinity, imaginary); 1022return new Complex<T>(T.NaN, T.PositiveInfinity); 1025return new Complex<T>(T.Zero, T.CopySign(T.PositiveInfinity, imaginary)); 1029return new Complex<T>(T.PositiveInfinity, T.IsNaN(imaginary) ? T.NaN : T.CopySign(T.Zero, imaginary)); 1035return new Complex<T>(T.NaN, T.NaN); 1043return new Complex<T>(T.Zero, T.CopySign(T.Sqrt(-real), imaginary)); 1046return new Complex<T>(T.Sqrt(real), T.CopySign(T.Zero, imaginary)); 1087return new Complex<T>(x, y); 1130return Pow(value, new Complex<T>(power, T.Zero)); 1137return new Complex<T>(realResult, imaginaryResult); 1146return new Complex<T>(value, T.Zero); 1591return new Complex<T>(result_realpart, result_imaginarypart); 1651result = new Complex<T>((T)(object)value, T.Zero); 1658result = new Complex<T>(T.CreateChecked(actualValue.Real), T.CreateChecked(actualValue.Imaginary)); 1664result = new Complex<T>(realResult, T.Zero); 1670result = new Complex<T>(realResult2, T.Zero); 1683result = new Complex<T>((T)(object)value, T.Zero); 1690result = new Complex<T>(T.CreateSaturating(actualValue.Real), T.CreateSaturating(actualValue.Imaginary)); 1696result = new Complex<T>(realResult, T.Zero); 1702result = new Complex<T>(realResult2, T.Zero); 1715result = new Complex<T>((T)(object)value, T.Zero); 1722result = new Complex<T>(T.CreateTruncating(actualValue.Real), T.CreateTruncating(actualValue.Imaginary)); 1728result = new Complex<T>(realResult, T.Zero); 1734result = new Complex<T>(realResult2, T.Zero); 2015result = new Complex<T>(real!, imaginary!); 2065static Complex<T> ISignedNumber<Complex<T>>.NegativeOne => new(-T.One, T.Zero);
313 references to Complex
System.Runtime.Numerics (313)
System\Numerics\Complex.cs (65)
165Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) * new Complex<double>(right.m_real, right.m_imaginary); 171Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) * right; 177Complex<double> result = left * new Complex<double>(right.m_real, right.m_imaginary); 183Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) / new Complex<double>(right.m_real, right.m_imaginary); 189Complex<double> result = new Complex<double>(left.m_real, left.m_imaginary) / right; 195Complex<double> result = left / new Complex<double>(right.m_real, right.m_imaginary); 253Complex<double> result = Complex<double>.Sin(new Complex<double>(value.m_real, value.m_imaginary)); 259Complex<double> result = Complex<double>.Sinh(new Complex<double>(value.m_real, value.m_imaginary)); 265Complex<double> result = Complex<double>.Asin(new Complex<double>(value.m_real, value.m_imaginary)); 271Complex<double> result = Complex<double>.Cos(new Complex<double>(value.m_real, value.m_imaginary)); 277Complex<double> result = Complex<double>.Cosh(new Complex<double>(value.m_real, value.m_imaginary)); 283Complex<double> result = Complex<double>.Acos(new Complex<double>(value.m_real, value.m_imaginary)); 289Complex<double> result = Complex<double>.Tan(new Complex<double>(value.m_real, value.m_imaginary)); 295Complex<double> result = Complex<double>.Tanh(new Complex<double>(value.m_real, value.m_imaginary)); 301Complex<double> result = Complex<double>.Atan(new Complex<double>(value.m_real, value.m_imaginary)); 313Complex<double> result = Complex<double>.Log(new Complex<double>(value.m_real, value.m_imaginary)); 324Complex<double> result = Complex<double>.Log10(new Complex<double>(value.m_real, value.m_imaginary)); 330Complex<double> result = Complex<double>.Exp(new Complex<double>(value.m_real, value.m_imaginary)); 336Complex<double> result = Complex<double>.Sqrt(new Complex<double>(value.m_real, value.m_imaginary)); 342Complex<double> result = Complex<double>.Pow(new Complex<double>(value.m_real, value.m_imaginary), new Complex<double>(power.m_real, power.m_imaginary)); 664Complex<double> result = Complex<double>.MaxMagnitude(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 671Complex<double> result = Complex<double>.MaxMagnitudeNumber(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 678Complex<double> result = Complex<double>.MinMagnitude(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 685Complex<double> result = Complex<double>.MinMagnitudeNumber(new Complex<double>(x.m_real, x.m_imaginary), new Complex<double>(y.m_real, y.m_imaginary)); 692Complex<double> result = Complex<double>.MultiplyAddEstimate(new Complex<double>(left.m_real, left.m_imaginary), new Complex<double>(right.m_real, right.m_imaginary), new Complex<double>(addend.m_real, addend.m_imaginary)); 747if (typeof(TOther) == typeof(Complex<double>)) 749Complex<double> actualValue = (Complex<double>)(object)value; 754if (Complex<double>.TryConvertFromCheckedCore(value, out Complex<double> intermediate)) 768if (typeof(TOther) == typeof(Complex<double>)) 774return Complex<double>.TryConvertToCheckedCore(new Complex<double>(value.m_real, value.m_imaginary), out result); 781if (typeof(TOther) == typeof(Complex<double>)) 787return Complex<double>.TryConvertToSaturatingCore(new Complex<double>(value.m_real, value.m_imaginary), out result); 794if (typeof(TOther) == typeof(Complex<double>)) 800return Complex<double>.TryConvertToTruncatingCore(new Complex<double>(value.m_real, value.m_imaginary), out result); 807return Complex<double>.TryParse(MemoryMarshal.Cast<char, Utf16Char>(s), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out _); 814return Complex<double>.TryParse(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out _); 821return Complex<double>.TryParsePartial(MemoryMarshal.Cast<char, Utf16Char>(s.AsSpan()), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out charsConsumed); 828return Complex<double>.TryParsePartial(MemoryMarshal.Cast<byte, Utf8Char>(utf8Text), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out bytesConsumed); 835return Complex<double>.TryParsePartial(MemoryMarshal.Cast<char, Utf16Char>(s), style, provider, out Unsafe.As<Complex, Complex<double>>(ref result), out charsConsumed);
System\Numerics\Complex.Generic.cs (248)
19: IEquatable<Complex<T>>, 21INumberBase<Complex<T>>, 22ISignedNumber<Complex<T>>, 26public static Complex<T> Zero => new(T.Zero, T.Zero); 27public static Complex<T> One => new(T.One, T.Zero); 28public static Complex<T> ImaginaryOne => new(T.Zero, T.One); 29public static Complex<T> NaN => new(T.NaN, T.NaN); 30public static Complex<T> Infinity => new(T.PositiveInfinity, T.PositiveInfinity); 59public static Complex<T> FromPolarCoordinates(T magnitude, T phase) 65public static Complex<T> Negate(Complex<T> value) 70public static Complex<T> Add(Complex<T> left, Complex<T> right) 75public static Complex<T> Add(Complex<T> left, T right) 80public static Complex<T> Add(T left, Complex<T> right) 85public static Complex<T> Subtract(Complex<T> left, Complex<T> right) 90public static Complex<T> Subtract(Complex<T> left, T right) 95public static Complex<T> Subtract(T left, Complex<T> right) 100public static Complex<T> Multiply(Complex<T> left, Complex<T> right) 105public static Complex<T> Multiply(Complex<T> left, T right) 110public static Complex<T> Multiply(T left, Complex<T> right) 115public static Complex<T> Divide(Complex<T> dividend, Complex<T> divisor) 120public static Complex<T> Divide(Complex<T> dividend, T divisor) 125public static Complex<T> Divide(T dividend, Complex<T> divisor) 130public static Complex<T> operator -(Complex<T> value) 135public static Complex<T> operator +(Complex<T> left, Complex<T> right) 140public static Complex<T> operator +(Complex<T> left, T right) 145public static Complex<T> operator +(T left, Complex<T> right) 150public static Complex<T> operator -(Complex<T> left, Complex<T> right) 155public static Complex<T> operator -(Complex<T> left, T right) 160public static Complex<T> operator -(T left, Complex<T> right) 165public static Complex<T> operator *(Complex<T> left, Complex<T> right) 186private static Complex<T> MultiplyNaNRecovery(T a, T b, T c, T d, T x, T y) 267public static Complex<T> operator *(Complex<T> left, T right) 274public static Complex<T> operator *(T left, Complex<T> right) 279public static Complex<T> operator /(Complex<T> left, Complex<T> right) 318private static Complex<T> DivideNaNRecovery(T a, T b, T c, T d, T x, T y) 350public static Complex<T> operator /(Complex<T> left, T right) 357public static Complex<T> operator /(T left, Complex<T> right) 364public static T Abs(Complex<T> value) 394public static Complex<T> Conjugate(Complex<T> value) 400public static Complex<T> Reciprocal(Complex<T> value) 410public static bool operator ==(Complex<T> left, Complex<T> right) 415public static bool operator !=(Complex<T> left, Complex<T> right) 422return obj is Complex<T> other && Equals(other); 425public bool Equals(Complex<T> value) 450public static Complex<T> Sin(Complex<T> value) 455Complex<T> sinh = Sinh(new Complex<T>(-value.m_imaginary, value.m_real)); 467public static Complex<T> Sinh(Complex<T> value) 506Complex<T> sin = Sin(new Complex<T>(-imaginary, real)); 510public static Complex<T> Asin(Complex<T> value) 515Complex<T> s = AsinhSpecialValue(-value.m_imaginary, value.m_real); 547private static Complex<T> AsinhSpecialValue(T a, T b) 581public static Complex<T> Cos(Complex<T> value) 596public static Complex<T> Cosh(Complex<T> value) 639public static Complex<T> Acos(Complex<T> value) 673private static Complex<T> AcosSpecialValue(T x, T y) 722public static Complex<T> Tan(Complex<T> value) 727Complex<T> tanh = Tanh(new Complex<T>(-value.m_imaginary, value.m_real)); 757public static Complex<T> Tanh(Complex<T> value) 790Complex<T> tan = Tan(new Complex<T>(-imaginary, real)); 794public static Complex<T> Atan(Complex<T> value) 799Complex<T> t = AtanhSpecialValue(-value.m_imaginary, value.m_real); 803Complex<T> two = new(T.CreateChecked(2), T.Zero); 810private static Complex<T> AtanhSpecialValue(T a, T b) 931public static bool IsFinite(Complex<T> value) => T.IsFinite(value.m_real) && T.IsFinite(value.m_imaginary); 933public static bool IsInfinity(Complex<T> value) => T.IsInfinity(value.m_real) || T.IsInfinity(value.m_imaginary); 935public static bool IsNaN(Complex<T> value) => !IsInfinity(value) && !IsFinite(value); 937public static Complex<T> Log(Complex<T> value) 942public static Complex<T> Log(Complex<T> value, T baseValue) 947public static Complex<T> Log10(Complex<T> value) 949Complex<T> tempLog = Log(value); 953public static Complex<T> Exp(Complex<T> value) 1000public static Complex<T> Sqrt(Complex<T> value) 1090public static Complex<T> Pow(Complex<T> value, Complex<T> power) 1128public static Complex<T> Pow(Complex<T> value, T power) 1133private static Complex<T> Scale(Complex<T> value, T factor) 1144public static implicit operator Complex<T>(T value) 1154static Complex<T> IAdditiveIdentity<Complex<T>, Complex<T>>.AdditiveIdentity => Zero; 1161public static Complex<T> operator --(Complex<T> value) => value - One; 1168public static Complex<T> operator ++(Complex<T> value) => value + One; 1175static Complex<T> IMultiplicativeIdentity<Complex<T>, Complex<T>>.MultiplicativeIdentity => One; 1182static int INumberBase<Complex<T>>.Radix => T.Radix; 1185static Complex<T> INumberBase<Complex<T>>.Abs(Complex<T> value) => Abs(value); 1189public static Complex<T> CreateChecked<TOther>(TOther value) 1192Complex<T> result; 1194if (typeof(TOther) == typeof(Complex<T>)) 1196result = (Complex<T>)(object)value; 1208public static Complex<T> CreateSaturating<TOther>(TOther value) 1211Complex<T> result; 1213if (typeof(TOther) == typeof(Complex<T>)) 1215result = (Complex<T>)(object)value; 1227public static Complex<T> CreateTruncating<TOther>(TOther value) 1230Complex<T> result; 1232if (typeof(TOther) == typeof(Complex<T>)) 1234result = (Complex<T>)(object)value; 1245static bool INumberBase<Complex<T>>.IsCanonical(Complex<T> value) => true; 1248public static bool IsComplexNumber(Complex<T> value) => (value.m_real != T.Zero) && (value.m_imaginary != T.Zero); 1251public static bool IsEvenInteger(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsEvenInteger(value.m_real); 1254public static bool IsImaginaryNumber(Complex<T> value) => (value.m_real == T.Zero) && T.IsRealNumber(value.m_imaginary); 1257public static bool IsInteger(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsInteger(value.m_real); 1260public static bool IsNegative(Complex<T> value) 1269public static bool IsNegativeInfinity(Complex<T> value) 1278public static bool IsNormal(Complex<T> value) 1288public static bool IsOddInteger(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsOddInteger(value.m_real); 1291public static bool IsPositive(Complex<T> value) 1300public static bool IsPositiveInfinity(Complex<T> value) 1309public static bool IsRealNumber(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsRealNumber(value.m_real); 1312public static bool IsSubnormal(Complex<T> value) 1321static bool INumberBase<Complex<T>>.IsZero(Complex<T> value) => (value.m_real == T.Zero) && (value.m_imaginary == T.Zero); 1324public static Complex<T> MaxMagnitude(Complex<T> x, Complex<T> y) 1393internal static Complex<T> MaxMagnitudeNumber(Complex<T> x, Complex<T> y) 1450static Complex<T> INumberBase<Complex<T>>.MaxMagnitudeNumber(Complex<T> x, Complex<T> y) 1454public static Complex<T> MinMagnitude(Complex<T> x, Complex<T> y) 1514internal static Complex<T> MinMagnitudeNumber(Complex<T> x, Complex<T> y) 1575static Complex<T> INumberBase<Complex<T>>.MinMagnitudeNumber(Complex<T> x, Complex<T> y) 1578internal static Complex<T> MultiplyAddEstimate(Complex<T> left, Complex<T> right, Complex<T> addend) 1595static Complex<T> INumberBase<Complex<T>>.MultiplyAddEstimate(Complex<T> left, Complex<T> right, Complex<T> addend) 1599public static Complex<T> Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) 1601if (!TryParse(s, style, provider, out Complex<T> result)) 1609public static Complex<T> Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider) 1611if (!TryParse(utf8Text, style, provider, out Complex<T> result)) 1619public static Complex<T> Parse(string s, NumberStyles style, IFormatProvider? provider) 1627static bool INumberBase<Complex<T>>.TryConvertFromChecked<TOther>(TOther value, out Complex<T> result) 1634static bool INumberBase<Complex<T>>.TryConvertFromSaturating<TOther>(TOther value, out Complex<T> result) 1641static bool INumberBase<Complex<T>>.TryConvertFromTruncating<TOther>(TOther value, out Complex<T> result) 1646internal static bool TryConvertFromCheckedCore<TOther>(TOther value, out Complex<T> result) 1678internal static bool TryConvertFromSaturatingCore<TOther>(TOther value, out Complex<T> result) 1710internal static bool TryConvertFromTruncatingCore<TOther>(TOther value, out Complex<T> result) 1744static bool INumberBase<Complex<T>>.TryConvertToChecked<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1746if (typeof(TOther) == typeof(Complex<T>)) 1757static bool INumberBase<Complex<T>>.TryConvertToSaturating<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1759if (typeof(TOther) == typeof(Complex<T>)) 1770static bool INumberBase<Complex<T>>.TryConvertToTruncating<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1772if (typeof(TOther) == typeof(Complex<T>)) 1781internal static bool TryConvertToCheckedCore<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1828internal static bool TryConvertToSaturatingCore<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1859internal static bool TryConvertToTruncatingCore<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1891public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 1895public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 1899public static bool TryParsePartial([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int charsConsumed) 1903public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int bytesConsumed) 1907public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int charsConsumed) 1910internal static bool TryParse<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 1920internal static bool TryParsePartial<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 1927private static bool TryParseCore<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 2040public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 2055public static Complex<T> Parse(string s, IFormatProvider? provider) => Parse(s, Complex.DefaultNumberStyle, provider); 2058public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Complex<T> result) => TryParse(s, Complex.DefaultNumberStyle, provider, out result); 2065static Complex<T> ISignedNumber<Complex<T>>.NegativeOne => new(-T.One, T.Zero); 2125public static Complex<T> Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, Complex.DefaultNumberStyle, provider); 2128public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Complex<T> result) => TryParse(s, Complex.DefaultNumberStyle, provider, out result); 2135public static Complex<T> operator +(Complex<T> value) => value; 2142public static Complex<T> Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, Complex.DefaultNumberStyle, provider); 2145public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Complex<T> result) => TryParse(utf8Text, Complex.DefaultNumberStyle, provider, out result);