Java examples for java.lang:Math Algorithm

Click the following links for the tutorial for java.lang and Math Algorithm.

- Computes the Greatest Common Divisor of two integers.
- Computes the Least Common Multiple of two integers.
- Returns falling sequential product of n elements starts from x
- factorial recursive function
- Reports some non-trivial factor of a composite number.
- greatest common divisor (gcd)
- get Factors for an integer
- get Sum Of Factors
- Returns the next bigger number that's a power of 2.
- Pads the data to the next power of 2.
- This function returns the largest positive remainder of b and m.
- get Total Page Number from total row
- get Total Row Number from Statement and table name
- calculate Dispersion
- calculate Entropy
- Calculates peak signal-to-noise ratio
- Math log based 2
- Formats the frequency range as bizarrely reported by the EQ API into something readable.
- compute Entropy
- compute Information Gain
- points are clockwise
- Calculate Levenshtein Distance
- Calculate wind chill.
- Essentially number mod modulus, but with the ability to specify the output range.
- Returns the number of vertical subdivisions the argument image needs to be divided into to respect argument size
- Returns the number of horizontal subdivisions the argument image needs to be divided into to respect argument size
- fibonacci Dynamic Programming via BigInteger
- find Shortest Path With Greedy Approach
- Performs Gauss-Jordan reduction on a matrix using field arithmetic.
- Computes and returns intervals a quadratic equation a*x^2+b*x+c=0 is positive.
- Solves a linear system with two unknowns: c1[0]*x+c1[1]*y+c1[2]=0 c2[0]*x+c2[1]*y+c2[2]=0
- Get the log( exp( logX ) - exp( logY ) ).
- Returns the greatest common divisor of two positive numbers (this precondition is not checked and the result is undefined if not fulfilled) using the "binary gcd" method which avoids division and modulo operations.
- Returns the least common multiple of the absolute value of two numbers, using the formula lcm(a, b) = (a / gcd(a, b)) * b .
- Returns the negative and positive roots of a quadratic equation a*x^2+b*x+c=0 as a double array. Note that if a<0 then the negative root has the smallest x-value, and if a>0 then the positive root has the smallest x-value.
- generate Permutations from a List of Integer
- Calculates the English BMI of the specified statistics.
- This function performs a polynomial interpolation using a set of given x and y values.
- returns the largest double value that is smaller than d = x * 10exp where x is rounded down to the closest integer.
- A double value can be represented like d = x * 10exp and this method returns the value of exp for a double d.
- This method returns the smallest double value that is smaller than d = x * 10exp where x is rounded up to the closest integer.
- converts time (in milliseconds) to human-readable format " days, hours, minutes and (z) seconds"
- Aggregates all attributes from the given element, formats then into the proper key="value" XML format and returns them as one String
- Recursively finds and accumulates all element's text and element children into a String in raw XML form
- Simple method that calculate a tip base on the amount of the bill and a given tip percentage
- Returns true if the double numbers are equal by EPSILON.
- Returns true if the Double value difference is minor to 1e-12.
- Returns the addition of distance between all point int the array.
- Returns the calculation of the geographical distance between two points.
- Computes the normal mean.
- Computes the weighted mean.
- Computes the factorial of a number.
- Computing the norm as the Euclidean norm.
- Computing the norm as the Euclidean norm squared (i.e.
- Computing the norm as the Euclidean norm squared (i.e.
- Computing the norm as the Max norm.
- calculate Deviation