1 write to m_real
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
47
m_real
= real;
79 references to m_real
System.Runtime.Numerics (79)
System\Numerics\Complex.cs (79)
51
public double Real { get { return
m_real
; } }
55
public double Phase { get { return Math.Atan2(m_imaginary,
m_real
); } }
130
return new Complex(-value.
m_real
, -value.m_imaginary);
135
return new Complex(left.
m_real
+ right.
m_real
, left.m_imaginary + right.m_imaginary);
140
return new Complex(left.
m_real
+ right, left.m_imaginary);
145
return new Complex(left + right.
m_real
, right.m_imaginary);
150
return new Complex(left.
m_real
- right.
m_real
, left.m_imaginary - right.m_imaginary);
155
return new Complex(left.
m_real
- right, left.m_imaginary);
160
return new Complex(left - right.
m_real
, -right.m_imaginary);
165
Complex<double> result = new Complex<double>(left.
m_real
, left.m_imaginary) * new Complex<double>(right.
m_real
, right.m_imaginary);
171
Complex<double> result = new Complex<double>(left.
m_real
, left.m_imaginary) * right;
177
Complex<double> result = left * new Complex<double>(right.
m_real
, right.m_imaginary);
183
Complex<double> result = new Complex<double>(left.
m_real
, left.m_imaginary) / new Complex<double>(right.
m_real
, right.m_imaginary);
189
Complex<double> result = new Complex<double>(left.
m_real
, left.m_imaginary) / right;
195
Complex<double> result = left / new Complex<double>(right.
m_real
, right.m_imaginary);
201
return double.Hypot(value.
m_real
, value.m_imaginary);
207
return new Complex(value.
m_real
, -value.m_imaginary);
213
if (value.
m_real
== 0 && value.m_imaginary == 0)
222
return left.
m_real
== right.
m_real
&& left.m_imaginary == right.m_imaginary;
227
return left.
m_real
!= right.
m_real
|| left.m_imaginary != right.m_imaginary;
237
return
m_real
.Equals(value.
m_real
) && m_imaginary.Equals(value.m_imaginary);
240
public override int GetHashCode() => HashCode.Combine(
m_real
, m_imaginary);
249
=> new Complex<double>(
m_real
, m_imaginary).ToString(format, provider);
253
Complex<double> result = Complex<double>.Sin(new Complex<double>(value.
m_real
, value.m_imaginary));
259
Complex<double> result = Complex<double>.Sinh(new Complex<double>(value.
m_real
, value.m_imaginary));
265
Complex<double> result = Complex<double>.Asin(new Complex<double>(value.
m_real
, value.m_imaginary));
271
Complex<double> result = Complex<double>.Cos(new Complex<double>(value.
m_real
, value.m_imaginary));
277
Complex<double> result = Complex<double>.Cosh(new Complex<double>(value.
m_real
, value.m_imaginary));
283
Complex<double> result = Complex<double>.Acos(new Complex<double>(value.
m_real
, value.m_imaginary));
289
Complex<double> result = Complex<double>.Tan(new Complex<double>(value.
m_real
, value.m_imaginary));
295
Complex<double> result = Complex<double>.Tanh(new Complex<double>(value.
m_real
, value.m_imaginary));
301
Complex<double> result = Complex<double>.Atan(new Complex<double>(value.
m_real
, value.m_imaginary));
305
public static bool IsFinite(Complex value) => double.IsFinite(value.
m_real
) && double.IsFinite(value.m_imaginary);
307
public static bool IsInfinity(Complex value) => double.IsInfinity(value.
m_real
) || double.IsInfinity(value.m_imaginary);
313
Complex<double> result = Complex<double>.Log(new Complex<double>(value.
m_real
, value.m_imaginary));
324
Complex<double> result = Complex<double>.Log10(new Complex<double>(value.
m_real
, value.m_imaginary));
330
Complex<double> result = Complex<double>.Exp(new Complex<double>(value.
m_real
, value.m_imaginary));
336
Complex<double> result = Complex<double>.Sqrt(new Complex<double>(value.
m_real
, value.m_imaginary));
342
Complex<double> result = Complex<double>.Pow(new Complex<double>(value.
m_real
, value.m_imaginary), new Complex<double>(power.
m_real
, power.m_imaginary));
586
public static bool IsComplexNumber(Complex value) => (value.
m_real
!= 0.0) && (value.m_imaginary != 0.0);
589
public static bool IsEvenInteger(Complex value) => (value.m_imaginary == 0) && double.IsEvenInteger(value.
m_real
);
592
public static bool IsImaginaryNumber(Complex value) => (value.
m_real
== 0.0) && double.IsRealNumber(value.m_imaginary);
595
public static bool IsInteger(Complex value) => (value.m_imaginary == 0) && double.IsInteger(value.
m_real
);
603
return (value.m_imaginary == 0.0) && double.IsNegative(value.
m_real
);
612
return (value.m_imaginary == 0.0) && double.IsNegativeInfinity(value.
m_real
);
621
return double.IsNormal(value.
m_real
)
626
public static bool IsOddInteger(Complex value) => (value.m_imaginary == 0) && double.IsOddInteger(value.
m_real
);
634
return (value.m_imaginary == 0.0) && double.IsPositive(value.
m_real
);
643
return (value.m_imaginary == 0.0) && double.IsPositiveInfinity(value.
m_real
);
647
public static bool IsRealNumber(Complex value) => (value.m_imaginary == 0.0) && double.IsRealNumber(value.
m_real
);
655
return double.IsSubnormal(value.
m_real
) || double.IsSubnormal(value.m_imaginary);
659
static bool INumberBase<Complex>.IsZero(Complex value) => (value.
m_real
== 0.0) && (value.m_imaginary == 0.0);
664
Complex<double> result = Complex<double>.MaxMagnitude(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
671
Complex<double> result = Complex<double>.MaxMagnitudeNumber(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
678
Complex<double> result = Complex<double>.MinMagnitude(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
685
Complex<double> result = Complex<double>.MinMagnitudeNumber(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
692
Complex<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));
770
result = (TOther)(object)new Complex<double>(value.
m_real
, value.m_imaginary);
774
return Complex<double>.TryConvertToCheckedCore(new Complex<double>(value.
m_real
, value.m_imaginary), out result);
783
result = (TOther)(object)new Complex<double>(value.
m_real
, value.m_imaginary);
787
return Complex<double>.TryConvertToSaturatingCore(new Complex<double>(value.
m_real
, value.m_imaginary), out result);
796
result = (TOther)(object)new Complex<double>(value.
m_real
, value.m_imaginary);
800
return Complex<double>.TryConvertToTruncatingCore(new Complex<double>(value.
m_real
, value.m_imaginary), out result);
882
?
m_real
.TryFormat(Unsafe.BitCast<Span<TChar>, Span<byte>>(destination.Slice(1)), out int realChars, format, provider)
883
:
m_real
.TryFormat(Unsafe.BitCast<Span<TChar>, Span<char>>(destination.Slice(1)), out realChars, format, provider))