1 write to m_real
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
50
m_real
= real;
82 references to m_real
System.Runtime.Numerics (82)
System\Numerics\Complex.cs (82)
54
public double Real { get { return
m_real
; } }
58
public double Phase { get { return Math.Atan2(m_imaginary,
m_real
); } }
133
return new Complex(-value.
m_real
, -value.m_imaginary);
138
return new Complex(left.
m_real
+ right.
m_real
, left.m_imaginary + right.m_imaginary);
143
return new Complex(left.
m_real
+ right, left.m_imaginary);
148
return new Complex(left + right.
m_real
, right.m_imaginary);
153
return new Complex(left.
m_real
- right.
m_real
, left.m_imaginary - right.m_imaginary);
158
return new Complex(left.
m_real
- right, left.m_imaginary);
163
return new Complex(left - right.
m_real
, -right.m_imaginary);
169
double result_realpart = (left.
m_real
* right.
m_real
) - (left.m_imaginary * right.m_imaginary);
170
double result_imaginarypart = (left.m_imaginary * right.
m_real
) + (left.
m_real
* right.m_imaginary);
176
Complex<double> result = new Complex<double>(left.
m_real
, left.m_imaginary) * right;
182
Complex<double> result = left * new Complex<double>(right.
m_real
, right.m_imaginary);
188
Complex<double> result = new Complex<double>(left.
m_real
, left.m_imaginary) / new Complex<double>(right.
m_real
, right.m_imaginary);
194
Complex<double> result = new Complex<double>(left.
m_real
, left.m_imaginary) / right;
200
Complex<double> result = left / new Complex<double>(right.
m_real
, right.m_imaginary);
206
return double.Hypot(value.
m_real
, value.m_imaginary);
212
return new Complex(value.
m_real
, -value.m_imaginary);
218
if (value.
m_real
== 0 && value.m_imaginary == 0)
227
return left.
m_real
== right.
m_real
&& left.m_imaginary == right.m_imaginary;
232
return left.
m_real
!= right.
m_real
|| left.m_imaginary != right.m_imaginary;
242
return
m_real
.Equals(value.
m_real
) && m_imaginary.Equals(value.m_imaginary);
245
public override int GetHashCode() => HashCode.Combine(
m_real
, m_imaginary);
254
=> new Complex<double>(
m_real
, m_imaginary).ToString(format, provider);
258
(double sin, double cos) = Math.SinCos(value.
m_real
);
269
Complex sin = Sin(new Complex(-value.m_imaginary, value.
m_real
));
270
return new Complex(sin.m_imaginary, -sin.
m_real
);
275
Complex<double> result = Complex<double>.Asin(new Complex<double>(value.
m_real
, value.m_imaginary));
281
(double sin, double cos) = Math.SinCos(value.
m_real
);
288
return Cos(new Complex(-value.m_imaginary, value.
m_real
));
293
Complex<double> result = Complex<double>.Acos(new Complex<double>(value.
m_real
, value.m_imaginary));
299
Complex<double> result = Complex<double>.Tan(new Complex<double>(value.
m_real
, value.m_imaginary));
306
Complex tan = Tan(new Complex(-value.m_imaginary, value.
m_real
));
307
return new Complex(tan.m_imaginary, -tan.
m_real
);
316
public static bool IsFinite(Complex value) => double.IsFinite(value.
m_real
) && double.IsFinite(value.m_imaginary);
318
public static bool IsInfinity(Complex value) => double.IsInfinity(value.
m_real
) || double.IsInfinity(value.m_imaginary);
324
return new Complex(Math.Log(Abs(value)), Math.Atan2(value.m_imaginary, value.
m_real
));
340
double expReal = Math.Exp(value.
m_real
);
346
Complex<double> result = Complex<double>.Sqrt(new Complex<double>(value.
m_real
, value.m_imaginary));
352
Complex<double> result = Complex<double>.Pow(new Complex<double>(value.
m_real
, value.m_imaginary), new Complex<double>(power.
m_real
, power.m_imaginary));
363
double realResult = factor * value.
m_real
;
603
public static bool IsComplexNumber(Complex value) => (value.
m_real
!= 0.0) && (value.m_imaginary != 0.0);
606
public static bool IsEvenInteger(Complex value) => (value.m_imaginary == 0) && double.IsEvenInteger(value.
m_real
);
609
public static bool IsImaginaryNumber(Complex value) => (value.
m_real
== 0.0) && double.IsRealNumber(value.m_imaginary);
612
public static bool IsInteger(Complex value) => (value.m_imaginary == 0) && double.IsInteger(value.
m_real
);
620
return (value.m_imaginary == 0.0) && double.IsNegative(value.
m_real
);
629
return (value.m_imaginary == 0.0) && double.IsNegativeInfinity(value.
m_real
);
638
return double.IsNormal(value.
m_real
)
643
public static bool IsOddInteger(Complex value) => (value.m_imaginary == 0) && double.IsOddInteger(value.
m_real
);
651
return (value.m_imaginary == 0.0) && double.IsPositive(value.
m_real
);
660
return (value.m_imaginary == 0.0) && double.IsPositiveInfinity(value.
m_real
);
664
public static bool IsRealNumber(Complex value) => (value.m_imaginary == 0.0) && double.IsRealNumber(value.
m_real
);
672
return double.IsSubnormal(value.
m_real
) || double.IsSubnormal(value.m_imaginary);
676
static bool INumberBase<Complex>.IsZero(Complex value) => (value.
m_real
== 0.0) && (value.m_imaginary == 0.0);
681
Complex<double> result = Complex<double>.MaxMagnitude(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
688
Complex<double> result = Complex<double>.MaxMagnitudeNumber(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
695
Complex<double> result = Complex<double>.MinMagnitude(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
702
Complex<double> result = Complex<double>.MinMagnitudeNumber(new Complex<double>(x.
m_real
, x.m_imaginary), new Complex<double>(y.
m_real
, y.m_imaginary));
709
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));
787
result = (TOther)(object)new Complex<double>(value.
m_real
, value.m_imaginary);
791
return Complex<double>.TryConvertToCheckedCore(new Complex<double>(value.
m_real
, value.m_imaginary), out result);
800
result = (TOther)(object)new Complex<double>(value.
m_real
, value.m_imaginary);
804
return Complex<double>.TryConvertToSaturatingCore(new Complex<double>(value.
m_real
, value.m_imaginary), out result);
813
result = (TOther)(object)new Complex<double>(value.
m_real
, value.m_imaginary);
817
return Complex<double>.TryConvertToTruncatingCore(new Complex<double>(value.
m_real
, value.m_imaginary), out result);
899
?
m_real
.TryFormat(Unsafe.BitCast<Span<TChar>, Span<byte>>(destination.Slice(1)), out int realChars, format, provider)
900
:
m_real
.TryFormat(Unsafe.BitCast<Span<TChar>, Span<char>>(destination.Slice(1)), out realChars, format, provider))