Java examples for java.lang:Math Algorithm

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

- Returns falling sequential product of n elements starts from x
- factorial recursive function
- greatest common divisor (gcd)
- get Sum Of Factors
- Pads the data to the next power of 2.
- This function returns the largest positive remainder of b and m.
- 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.
- 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 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.
- Calculates the English BMI of the specified statistics.
- This function performs a polynomial interpolation using a set of given x and y values.
- A double value can be represented like d = x * 10exp and this method returns the value of exp for a double d.
- 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 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.
- Computing the norm as the Euclidean norm.
- Computing the norm as the Euclidean norm squared (i.e.
- Computing the norm as the Max norm.
- calculate Deviation
- greatest Common Divisor
- histogram Algorithm
- Calculates factorial.
- is Fibonacci
- is Perfect Square
- get Fibonnaci
- sum N Fibonnaci
- average a double type array
- euclidean Distance
- standard deviation on double type array
- log10 Factorial
- Takes the factorial of a value.
- mutate Swap Values In Place
- mutate Swap Values
- output Square Matrix
- Gets the length of a collatz sequence chain
- Returns a 2-D array that represents a triangle from Project Euler questions
- Gets an array of primes up until a num using the sieve Of Atkin method
- log Gamma
- Gets the next twin prime that is near a power of 2 and greater than or equal to the given value
- Converts a given SparseIntHistogram to a double array containing all possible values.
- Allows histogram scoring from discrete input REU values
- Discretizes using even bin sizes
- Discretizes using a maximum entropy partitioning
- Performs a Hermite spline interpolation.
- Performs a Catmull-Rom interpolation using the specified positions.