Documentation of 'cc.redberry.core.number.NumberUtils' Java class
NumberUtils
cc.redberry.core.number

Class NumberUtils



  • public final class NumberUtils
    extends java.lang.Object
    • Field Detail

      • TWO_BIG_INT

        public static java.math.BigInteger TWO_BIG_INT
    • Method Detail

      • createNumeric

        public static Numeric createNumeric(double d)
      • createRational

        public static Rational createRational(org.apache.commons.math3.fraction.BigFraction fraction)
      • sqrt

        public static java.math.BigInteger sqrt(java.math.BigInteger n)
        Computes the integer square root of a number.
        Parameters:
        n - The number.
        Returns:
        The integer square root, i.e. the largest number whose square doesn't exceed n.
      • isSqrt

        public static boolean isSqrt(java.math.BigInteger n,
                                     java.math.BigInteger root)
      • isIntegerOdd

        public static boolean isIntegerOdd(Complex complex)
      • isIntegerEven

        public static boolean isIntegerEven(Complex complex)
      • isZeroOrIndeterminate

        public static boolean isZeroOrIndeterminate(Complex complex)
      • isIndeterminate

        public static boolean isIndeterminate(Complex complex)
      • isRealNegative

        public static boolean isRealNegative(Complex complex)
      • isRealNumerical

        public static boolean isRealNumerical(Tensor tensor)
      • pow

        public static java.math.BigInteger pow(java.math.BigInteger base,
                                               java.math.BigInteger exponent)
      • pow

        public static long pow(long base,
                               long exponent)
      • factorial

        public static java.math.BigInteger factorial(int n)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.