Accord.Math.Special.Epslon C# (CSharp) Method

Epslon() public static method

Estimates unit round-off in quantities of size x.
This is a port of the epslon function from EISPACK.
public static Epslon ( double x ) : double
x double
return double
        public static double Epslon(double x)
        {
            double a, b, c, eps;

            a = 1.3333333333333333;

        L10:
            b = a - 1.0;
            c = b + b + b;
            eps = System.Math.Abs(c - 1.0);

            if (eps == 0.0)
                goto L10;

            return eps * System.Math.Abs(x);
        }