Documentation of 'jsci.maths.MathDouble' Java class
MathDouble
jsci.maths

Class MathDouble

    • Constructor Detail

      • MathDouble

        public MathDouble(double num)
        Constructs a double number.
      • MathDouble

        public MathDouble(java.lang.String s)
                   throws java.lang.NumberFormatException
        Constructs the double number represented by a string.
        Parameters:
        s - a string representing a double number.
        Throws:
        java.lang.NumberFormatException - if the string does not contain a parsable number.
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        Compares two numbers for equality.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - a number.
      • equals

        public boolean equals(java.lang.Object obj,
                              double tol)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo(java.lang.Object obj)
                      throws java.lang.IllegalArgumentException
        Compares two numbers.
        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        obj - a number.
        Returns:
        a negative value if this<obj, zero if this==obj, and a positive value if this>obj.
        Throws:
        java.lang.IllegalArgumentException
      • toString

        public java.lang.String toString()
        Returns a string representing the value of this double number.
        Overrides:
        toString in class java.lang.Object
      • value

        public double value()
        Returns the double value.
      • intValue

        public int intValue()
        Specified by:
        intValue in class java.lang.Number
      • longValue

        public long longValue()
        Specified by:
        longValue in class java.lang.Number
      • floatValue

        public float floatValue()
        Specified by:
        floatValue in class java.lang.Number
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in class java.lang.Number
      • isZero

        public static boolean isZero(double x)
        Returns true if the number is within the zero tolerance.
      • isNaN

        public boolean isNaN()
        Returns true if this number is NaN.
      • isInfinite

        public boolean isInfinite()
        Returns true if this number is infinite.
      • getSet

        public java.lang.Object getSet()
        Specified by:
        getSet in interface Member
      • add

        public MathDouble add(MathDouble n)
        Returns the addition of this double number and another.
      • subtract

        public MathDouble subtract(MathDouble n)
        Returns the subtraction of this double number and another.
      • subtract

        public MathDouble subtract(double y)
      • multiply

        public MathDouble multiply(MathDouble n)
        Returns the multiplication of this double number and another.
      • multiply

        public MathDouble multiply(double y)
      • divide

        public MathDouble divide(MathDouble n)
        Returns the division of this double number and another.
      • exp

        public static MathDouble exp(MathDouble x)
        Returns the exponential number e(2.718...) raised to the power of a number.
      • exp

        public static MathDouble exp(java.lang.Number x)
      • log

        public static MathDouble log(MathDouble x)
        Returns the natural logarithm (base e) of a number.
      • log

        public static MathDouble log(java.lang.Number x)
      • sin

        public static MathDouble sin(MathDouble x)
        Returns the trigonometric sine of an angle.
        Parameters:
        x - an angle that is measured in radians
      • sin

        public static MathDouble sin(java.lang.Number x)
      • cos

        public static MathDouble cos(MathDouble x)
        Returns the trigonometric cosine of an angle.
        Parameters:
        x - an angle that is measured in radians
      • cos

        public static MathDouble cos(java.lang.Number x)
      • tan

        public static MathDouble tan(MathDouble x)
        Returns the trigonometric tangent of an angle.
        Parameters:
        x - an angle that is measured in radians
      • tan

        public static MathDouble tan(java.lang.Number x)
      • sinh

        public static MathDouble sinh(java.lang.Number x)
      • cosh

        public static MathDouble cosh(java.lang.Number x)
      • tanh

        public static MathDouble tanh(java.lang.Number x)
      • asin

        public static MathDouble asin(java.lang.Number x)
      • acos

        public static MathDouble acos(java.lang.Number x)
      • atan

        public static MathDouble atan(java.lang.Number x)
      • asinh

        public static MathDouble asinh(MathDouble x)
        Returns the arc hyperbolic sine of a number.
      • asinh

        public static MathDouble asinh(java.lang.Number x)
      • asinh

        public static MathDouble asinh(double x)
      • acosh

        public static MathDouble acosh(MathDouble x)
        Returns the arc hyperbolic cosine of a number.
      • acosh

        public static MathDouble acosh(java.lang.Number x)
      • acosh

        public static MathDouble acosh(double x)
      • atanh

        public static MathDouble atanh(MathDouble x)
        Returns the arc hyperbolic tangent of a number.
      • atanh

        public static MathDouble atanh(java.lang.Number x)
      • atanh

        public static MathDouble atanh(double x)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.