Java java.lang Math Algorithm

Java examples for java.lang:Math Algorithm


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

  1. Computes the Greatest Common Divisor of two integers.
  2. Computes the Least Common Multiple of two integers.
  3. Returns falling sequential product of n elements starts from x
  4. factorial recursive function
  5. Reports some non-trivial factor of a composite number.
  6. greatest common divisor (gcd)
  7. get Factors for an integer
  8. get Sum Of Factors

  9. Returns the next bigger number that's a power of 2.
  10. Pads the data to the next power of 2.
  11. This function returns the largest positive remainder of b and m.
  12. get Total Page Number from total row
  13. get Total Row Number from Statement and table name
  14. calculate Dispersion
  15. calculate Entropy
  16. Calculates peak signal-to-noise ratio

  17. Math log based 2
  18. Formats the frequency range as bizarrely reported by the EQ API into something readable.
  19. compute Entropy
  20. compute Information Gain
  21. points are clockwise
  22. Calculate Levenshtein Distance
  23. Calculate wind chill.
  24. Essentially number mod modulus, but with the ability to specify the output range.
  25. Returns the number of vertical subdivisions the argument image needs to be divided into to respect argument size
  26. Returns the number of horizontal subdivisions the argument image needs to be divided into to respect argument size
  27. fibonacci Dynamic Programming via BigInteger
  28. find Shortest Path With Greedy Approach
  29. Performs Gauss-Jordan reduction on a matrix using field arithmetic.
  30. Computes and returns intervals a quadratic equation a*x^2+b*x+c=0 is positive.
  31. 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
  32. Get the log( exp( logX ) - exp( logY ) ).
  33. 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.
  34. Returns the least common multiple of the absolute value of two numbers, using the formula lcm(a, b) = (a / gcd(a, b)) * b .
  35. 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.
  36. generate Permutations from a List of Integer
  37. Calculates the English BMI of the specified statistics.
  38. This function performs a polynomial interpolation using a set of given x and y values.
  39. returns the largest double value that is smaller than d = x * 10exp where x is rounded down to the closest integer.
  40. A double value can be represented like d = x * 10exp and this method returns the value of exp for a double d.
  41. This method returns the smallest double value that is smaller than d = x * 10exp where x is rounded up to the closest integer.
  42. converts time (in milliseconds) to human-readable format " days, hours, minutes and (z) seconds"
  43. Aggregates all attributes from the given element, formats then into the proper key="value" XML format and returns them as one String
  44. Recursively finds and accumulates all element's text and element children into a String in raw XML form
  45. Simple method that calculate a tip base on the amount of the bill and a given tip percentage
  46. Returns true if the double numbers are equal by EPSILON.
  47. Returns true if the Double value difference is minor to 1e-12.
  48. Returns the addition of distance between all point int the array.
  49. Returns the calculation of the geographical distance between two points.
  50. Computes the normal mean.
  51. Computes the weighted mean.
  52. Computes the factorial of a number.
  53. Computing the norm as the Euclidean norm.
  54. Computing the norm as the Euclidean norm squared (i.e.
  55. Computing the norm as the Euclidean norm squared (i.e.
  56. Computing the norm as the Max norm.
  57. calculate Deviation