Microsoft.Scripting.Math.Complex64.Abs C# (CSharp) Méthode

Abs() public méthode

public Abs ( ) : double
Résultat double
        public double Abs() {
            return MathUtils.Hypot(real, imag);
        }

Usage Example

Exemple #1
0
        public static double Abs(Complex x)
        {
            double res = x.Abs();

            if (double.IsInfinity(res) && !double.IsInfinity(x.Real) && !double.IsInfinity(x.Imaginary()))
            {
                throw PythonOps.OverflowError("absolute value too large");
            }

            return(res);
        }
All Usage Examples Of Microsoft.Scripting.Math.Complex64::Abs