Class MathUtil


  • public class MathUtil
    extends Object
    Additional math utilities.
    See Also:
    Math
    • Constructor Detail

      • MathUtil

        public MathUtil()
    • Method Detail

      • orderOfMagnitude

        public static double orderOfMagnitude​(double x)
      • base10Log

        public static double base10Log​(double x)
      • mostSignificantDigit

        public static int mostSignificantDigit​(double x)
      • avg

        public static double avg​(double a,
                                 double b)
        Returns the average of two doubles
        Parameters:
        a - one of the doubles to average
        b - the other double to average
        Returns:
        the average of two doubles