-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Mohammad Badar Hashimi edited this page Jan 13, 2020
·
1 revision
Utilities for Mathematical operations.
- getPow : Raise an int to an int power.
- getRandom : Generate random number
- getSqrt : Compute the square root of a number.
- getMax: Compute the maximum of two values
- getRound : Rounds the given value to the specified number of decimal places.
- getAbs : Absolute value.
- getFactorial: Evaluate Factorial
- getGCD : Computes the greatest common divisor of the absolute value of two numbers, using a modified version of the "binary gcd" method.
- getLog : Natural logarithm.
- getLog10 : Compute the base 10 logarithm.
- getCopayOfArray: Creates a copy of source array
- getArrayMaxValue: Returns the maximum of the entries in the input array, or Double.NaN if the array is empty.
- getArrayMinValue: Returns the minimum of the entries in the input array, or Double.NaN if the array is empty.
- getArrayValuesSum: Returns the sum of the values in the input array, or Double.NaN if the array is empty.
- getValuesProduct: Returns the product of the entries in the input array, or Double.NaN if the array is empty.
- getValuesMean: Returns the arithmetic mean of the entries in the input array, or Double.NaN if the array is empty.
- isPrimeOrNot: Primality test: tells if the argument is a (provable) prime or not.
- nextPrimeNot :Return the smallest prime greater than or equal to n.
- getPrimeFactor:Prime factors decomposition