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)
28public static Complex<T> Zero => new(T.Zero, T.Zero); 29public static Complex<T> One => new(T.One, T.Zero); 30public static Complex<T> ImaginaryOne => new(T.Zero, T.One); 31public static Complex<T> NaN => new(T.NaN, T.NaN); 32public static Complex<T> Infinity => new(T.PositiveInfinity, T.PositiveInfinity); 64return new Complex<T>(magnitude * cos, magnitude * sin); 134return new Complex<T>(-value.m_real, -value.m_imaginary); 139return new Complex<T>(left.m_real + right.m_real, left.m_imaginary + right.m_imaginary); 144return new Complex<T>(left.m_real + right, left.m_imaginary); 149return new Complex<T>(left + right.m_real, right.m_imaginary); 154return new Complex<T>(left.m_real - right.m_real, left.m_imaginary - right.m_imaginary); 159return new Complex<T>(left.m_real - right, left.m_imaginary); 164return new Complex<T>(left - right.m_real, -right.m_imaginary); 184return new Complex<T>(x, y); 266return new Complex<T>(x, y); 273return left * new Complex<T>(right, T.Zero); 278return new Complex<T>(left, T.Zero) * right; 316return new Complex<T>(x, y); 349return new Complex<T>(x, y); 356return left / new Complex<T>(right, T.Zero); 363return new Complex<T>(left, T.Zero) / right; 399return new Complex<T>(value.m_real, -value.m_imaginary); 457Complex<T> sinh = Sinh(new Complex<T>(-value.m_imaginary, value.m_real)); 458return new Complex<T>(sinh.m_imaginary, -sinh.m_real); 466return new Complex<T>(sin * T.Cosh(value.m_imaginary), cos * T.Sinh(value.m_imaginary)); 480return (imaginary == T.Zero) ? new Complex<T>(real, imaginary) : new Complex<T>(T.NaN, T.NaN); 487return new Complex<T>(real, imaginary); 493return new Complex<T>(real, T.NaN); 498return new Complex<T>(T.Sinh(real) * cosInf, T.Cosh(real) * sinInf); 504return (real == T.Zero) ? new Complex<T>(real, T.NaN) : new Complex<T>(T.NaN, T.NaN); 508Complex<T> sin = Sin(new Complex<T>(-imaginary, real)); 509return new Complex<T>(sin.m_imaginary, -sin.m_real); 518return new Complex<T>(s.m_imaginary, -s.m_real); 543return new Complex<T>(u, v); 565return new Complex<T>(T.NaN, b); 580return new Complex<T>(re, im); 588return Cosh(new Complex<T>(-value.m_imaginary, value.m_real)); 595return new Complex<T>(cos * T.Cosh(value.m_imaginary), -sin * T.Sinh(value.m_imaginary)); 609return (imaginary == T.Zero) ? new Complex<T>(T.NaN, imaginary) : new Complex<T>(T.NaN, T.NaN); 617return new Complex<T>(T.PositiveInfinity, imag); 623return new Complex<T>(T.PositiveInfinity, T.NaN); 628return new Complex<T>(T.Cosh(real) * cosInf, T.Sinh(real) * sinInf); 634return (real == T.Zero) ? new Complex<T>(T.NaN, T.CopySign(T.Zero, real)) : new Complex<T>(T.NaN, T.NaN); 638return Cos(new Complex<T>(-imaginary, real)); 670return new Complex<T>(u, v); 721return new Complex<T>(re, im); 729Complex<T> tanh = Tanh(new Complex<T>(-value.m_imaginary, value.m_real)); 730return new Complex<T>(tanh.m_imaginary, -tanh.m_real); 750return new Complex<T>(sin / D, T.Sinh(y2) / D); 755return new Complex<T>(sin / cosh / D, T.Tanh(y2) / D); 770return (imaginary == T.Zero) ? new Complex<T>(real, imaginary) : new Complex<T>(T.NaN, T.NaN); 780return new Complex<T>(re, T.CopySign(T.Zero, sin * cos)); 782return new Complex<T>(re, T.CopySign(T.Zero, imaginary)); 788return (real == T.Zero) ? new Complex<T>(real, T.NaN) : new Complex<T>(T.NaN, T.NaN); 792Complex<T> tan = Tan(new Complex<T>(-imaginary, real)); 793return new Complex<T>(tan.m_imaginary, -tan.m_real); 802return new Complex<T>(t.m_imaginary, -t.m_real); 805Complex<T> two = new(T.CreateChecked(2), T.Zero); 847return new Complex<T>(re, im); 941return new Complex<T>(T.Log(Abs(value)), T.Atan2(value.m_imaginary, value.m_real)); 946return Log(value) / Log(new Complex<T>(baseValue, T.Zero)); 972return new Complex<T>(T.Zero, T.Zero); 981return new Complex<T>(real, imaginary); 987return new Complex<T>(T.PositiveInfinity, T.NaN); 995return (imaginary == T.Zero) ? new Complex<T>(T.NaN, imaginary) : new Complex<T>(T.NaN, T.NaN); 1014return new Complex<T>(T.PositiveInfinity, imaginary); 1024return new Complex<T>(T.NaN, T.PositiveInfinity); 1027return new Complex<T>(T.Zero, T.CopySign(T.PositiveInfinity, imaginary)); 1031return new Complex<T>(T.PositiveInfinity, T.IsNaN(imaginary) ? T.NaN : T.CopySign(T.Zero, imaginary)); 1037return new Complex<T>(T.NaN, T.NaN); 1045return new Complex<T>(T.Zero, T.CopySign(T.Sqrt(-real), imaginary)); 1048return new Complex<T>(T.Sqrt(real), T.CopySign(T.Zero, imaginary)); 1089return new Complex<T>(x, y); 1132return Pow(value, new Complex<T>(power, T.Zero)); 1139return new Complex<T>(realResult, imaginaryResult); 1148return new Complex<T>(value, T.Zero); 1593return new Complex<T>(result_realpart, result_imaginarypart); 1653result = new Complex<T>((T)(object)value, T.Zero); 1660result = new Complex<T>(T.CreateChecked(actualValue.Real), T.CreateChecked(actualValue.Imaginary)); 1666result = new Complex<T>(realResult, T.Zero); 1672result = new Complex<T>(realResult2, T.Zero); 1685result = new Complex<T>((T)(object)value, T.Zero); 1692result = new Complex<T>(T.CreateSaturating(actualValue.Real), T.CreateSaturating(actualValue.Imaginary)); 1698result = new Complex<T>(realResult, T.Zero); 1704result = new Complex<T>(realResult2, T.Zero); 1717result = new Complex<T>((T)(object)value, T.Zero); 1724result = new Complex<T>(T.CreateTruncating(actualValue.Real), T.CreateTruncating(actualValue.Imaginary)); 1730result = new Complex<T>(realResult, T.Zero); 1736result = new Complex<T>(realResult2, T.Zero); 2017result = new Complex<T>(real!, imaginary!); 2067static 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)
21: IEquatable<Complex<T>>, 23INumberBase<Complex<T>>, 24ISignedNumber<Complex<T>>, 28public static Complex<T> Zero => new(T.Zero, T.Zero); 29public static Complex<T> One => new(T.One, T.Zero); 30public static Complex<T> ImaginaryOne => new(T.Zero, T.One); 31public static Complex<T> NaN => new(T.NaN, T.NaN); 32public static Complex<T> Infinity => new(T.PositiveInfinity, T.PositiveInfinity); 61public static Complex<T> FromPolarCoordinates(T magnitude, T phase) 67public static Complex<T> Negate(Complex<T> value) 72public static Complex<T> Add(Complex<T> left, Complex<T> right) 77public static Complex<T> Add(Complex<T> left, T right) 82public static Complex<T> Add(T left, Complex<T> right) 87public static Complex<T> Subtract(Complex<T> left, Complex<T> right) 92public static Complex<T> Subtract(Complex<T> left, T right) 97public static Complex<T> Subtract(T left, Complex<T> right) 102public static Complex<T> Multiply(Complex<T> left, Complex<T> right) 107public static Complex<T> Multiply(Complex<T> left, T right) 112public static Complex<T> Multiply(T left, Complex<T> right) 117public static Complex<T> Divide(Complex<T> dividend, Complex<T> divisor) 122public static Complex<T> Divide(Complex<T> dividend, T divisor) 127public static Complex<T> Divide(T dividend, Complex<T> divisor) 132public static Complex<T> operator -(Complex<T> value) 137public static Complex<T> operator +(Complex<T> left, Complex<T> right) 142public static Complex<T> operator +(Complex<T> left, T right) 147public static Complex<T> operator +(T left, Complex<T> right) 152public static Complex<T> operator -(Complex<T> left, Complex<T> right) 157public static Complex<T> operator -(Complex<T> left, T right) 162public static Complex<T> operator -(T left, Complex<T> right) 167public static Complex<T> operator *(Complex<T> left, Complex<T> right) 188private static Complex<T> MultiplyNaNRecovery(T a, T b, T c, T d, T x, T y) 269public static Complex<T> operator *(Complex<T> left, T right) 276public static Complex<T> operator *(T left, Complex<T> right) 281public static Complex<T> operator /(Complex<T> left, Complex<T> right) 320private static Complex<T> DivideNaNRecovery(T a, T b, T c, T d, T x, T y) 352public static Complex<T> operator /(Complex<T> left, T right) 359public static Complex<T> operator /(T left, Complex<T> right) 366public static T Abs(Complex<T> value) 396public static Complex<T> Conjugate(Complex<T> value) 402public static Complex<T> Reciprocal(Complex<T> value) 412public static bool operator ==(Complex<T> left, Complex<T> right) 417public static bool operator !=(Complex<T> left, Complex<T> right) 424return obj is Complex<T> other && Equals(other); 427public bool Equals(Complex<T> value) 452public static Complex<T> Sin(Complex<T> value) 457Complex<T> sinh = Sinh(new Complex<T>(-value.m_imaginary, value.m_real)); 469public static Complex<T> Sinh(Complex<T> value) 508Complex<T> sin = Sin(new Complex<T>(-imaginary, real)); 512public static Complex<T> Asin(Complex<T> value) 517Complex<T> s = AsinhSpecialValue(-value.m_imaginary, value.m_real); 549private static Complex<T> AsinhSpecialValue(T a, T b) 583public static Complex<T> Cos(Complex<T> value) 598public static Complex<T> Cosh(Complex<T> value) 641public static Complex<T> Acos(Complex<T> value) 675private static Complex<T> AcosSpecialValue(T x, T y) 724public static Complex<T> Tan(Complex<T> value) 729Complex<T> tanh = Tanh(new Complex<T>(-value.m_imaginary, value.m_real)); 759public static Complex<T> Tanh(Complex<T> value) 792Complex<T> tan = Tan(new Complex<T>(-imaginary, real)); 796public static Complex<T> Atan(Complex<T> value) 801Complex<T> t = AtanhSpecialValue(-value.m_imaginary, value.m_real); 805Complex<T> two = new(T.CreateChecked(2), T.Zero); 812private static Complex<T> AtanhSpecialValue(T a, T b) 933public static bool IsFinite(Complex<T> value) => T.IsFinite(value.m_real) && T.IsFinite(value.m_imaginary); 935public static bool IsInfinity(Complex<T> value) => T.IsInfinity(value.m_real) || T.IsInfinity(value.m_imaginary); 937public static bool IsNaN(Complex<T> value) => !IsInfinity(value) && !IsFinite(value); 939public static Complex<T> Log(Complex<T> value) 944public static Complex<T> Log(Complex<T> value, T baseValue) 949public static Complex<T> Log10(Complex<T> value) 951Complex<T> tempLog = Log(value); 955public static Complex<T> Exp(Complex<T> value) 1002public static Complex<T> Sqrt(Complex<T> value) 1092public static Complex<T> Pow(Complex<T> value, Complex<T> power) 1130public static Complex<T> Pow(Complex<T> value, T power) 1135private static Complex<T> Scale(Complex<T> value, T factor) 1146public static implicit operator Complex<T>(T value) 1156static Complex<T> IAdditiveIdentity<Complex<T>, Complex<T>>.AdditiveIdentity => Zero; 1163public static Complex<T> operator --(Complex<T> value) => value - One; 1170public static Complex<T> operator ++(Complex<T> value) => value + One; 1177static Complex<T> IMultiplicativeIdentity<Complex<T>, Complex<T>>.MultiplicativeIdentity => One; 1184static int INumberBase<Complex<T>>.Radix => T.Radix; 1187static Complex<T> INumberBase<Complex<T>>.Abs(Complex<T> value) => Abs(value); 1191public static Complex<T> CreateChecked<TOther>(TOther value) 1194Complex<T> result; 1196if (typeof(TOther) == typeof(Complex<T>)) 1198result = (Complex<T>)(object)value; 1210public static Complex<T> CreateSaturating<TOther>(TOther value) 1213Complex<T> result; 1215if (typeof(TOther) == typeof(Complex<T>)) 1217result = (Complex<T>)(object)value; 1229public static Complex<T> CreateTruncating<TOther>(TOther value) 1232Complex<T> result; 1234if (typeof(TOther) == typeof(Complex<T>)) 1236result = (Complex<T>)(object)value; 1247static bool INumberBase<Complex<T>>.IsCanonical(Complex<T> value) => true; 1250public static bool IsComplexNumber(Complex<T> value) => (value.m_real != T.Zero) && (value.m_imaginary != T.Zero); 1253public static bool IsEvenInteger(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsEvenInteger(value.m_real); 1256public static bool IsImaginaryNumber(Complex<T> value) => (value.m_real == T.Zero) && T.IsRealNumber(value.m_imaginary); 1259public static bool IsInteger(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsInteger(value.m_real); 1262public static bool IsNegative(Complex<T> value) 1271public static bool IsNegativeInfinity(Complex<T> value) 1280public static bool IsNormal(Complex<T> value) 1290public static bool IsOddInteger(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsOddInteger(value.m_real); 1293public static bool IsPositive(Complex<T> value) 1302public static bool IsPositiveInfinity(Complex<T> value) 1311public static bool IsRealNumber(Complex<T> value) => (value.m_imaginary == T.Zero) && T.IsRealNumber(value.m_real); 1314public static bool IsSubnormal(Complex<T> value) 1323static bool INumberBase<Complex<T>>.IsZero(Complex<T> value) => (value.m_real == T.Zero) && (value.m_imaginary == T.Zero); 1326public static Complex<T> MaxMagnitude(Complex<T> x, Complex<T> y) 1395internal static Complex<T> MaxMagnitudeNumber(Complex<T> x, Complex<T> y) 1452static Complex<T> INumberBase<Complex<T>>.MaxMagnitudeNumber(Complex<T> x, Complex<T> y) 1456public static Complex<T> MinMagnitude(Complex<T> x, Complex<T> y) 1516internal static Complex<T> MinMagnitudeNumber(Complex<T> x, Complex<T> y) 1577static Complex<T> INumberBase<Complex<T>>.MinMagnitudeNumber(Complex<T> x, Complex<T> y) 1580internal static Complex<T> MultiplyAddEstimate(Complex<T> left, Complex<T> right, Complex<T> addend) 1597static Complex<T> INumberBase<Complex<T>>.MultiplyAddEstimate(Complex<T> left, Complex<T> right, Complex<T> addend) 1601public static Complex<T> Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) 1603if (!TryParse(s, style, provider, out Complex<T> result)) 1611public static Complex<T> Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider) 1613if (!TryParse(utf8Text, style, provider, out Complex<T> result)) 1621public static Complex<T> Parse(string s, NumberStyles style, IFormatProvider? provider) 1629static bool INumberBase<Complex<T>>.TryConvertFromChecked<TOther>(TOther value, out Complex<T> result) 1636static bool INumberBase<Complex<T>>.TryConvertFromSaturating<TOther>(TOther value, out Complex<T> result) 1643static bool INumberBase<Complex<T>>.TryConvertFromTruncating<TOther>(TOther value, out Complex<T> result) 1648internal static bool TryConvertFromCheckedCore<TOther>(TOther value, out Complex<T> result) 1680internal static bool TryConvertFromSaturatingCore<TOther>(TOther value, out Complex<T> result) 1712internal static bool TryConvertFromTruncatingCore<TOther>(TOther value, out Complex<T> result) 1746static bool INumberBase<Complex<T>>.TryConvertToChecked<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1748if (typeof(TOther) == typeof(Complex<T>)) 1759static bool INumberBase<Complex<T>>.TryConvertToSaturating<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1761if (typeof(TOther) == typeof(Complex<T>)) 1772static bool INumberBase<Complex<T>>.TryConvertToTruncating<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1774if (typeof(TOther) == typeof(Complex<T>)) 1783internal static bool TryConvertToCheckedCore<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1830internal static bool TryConvertToSaturatingCore<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1861internal static bool TryConvertToTruncatingCore<TOther>(Complex<T> value, [MaybeNullWhen(false)] out TOther result) 1893public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 1897public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 1901public static bool TryParsePartial([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int charsConsumed) 1905public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int bytesConsumed) 1909public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int charsConsumed) 1912internal static bool TryParse<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 1922internal static bool TryParsePartial<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 1929private static bool TryParseCore<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 2042public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 2057public static Complex<T> Parse(string s, IFormatProvider? provider) => Parse(s, Complex.DefaultNumberStyle, provider); 2060public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Complex<T> result) => TryParse(s, Complex.DefaultNumberStyle, provider, out result); 2067static Complex<T> ISignedNumber<Complex<T>>.NegativeOne => new(-T.One, T.Zero); 2127public static Complex<T> Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, Complex.DefaultNumberStyle, provider); 2130public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Complex<T> result) => TryParse(s, Complex.DefaultNumberStyle, provider, out result); 2137public static Complex<T> operator +(Complex<T> value) => value; 2144public static Complex<T> Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, Complex.DefaultNumberStyle, provider); 2147public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Complex<T> result) => TryParse(utf8Text, Complex.DefaultNumberStyle, provider, out result);