Class Mth


  • public class Mth
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Mth()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double gcd​(double a, double b)  
      static java.math.BigInteger lcm​(java.math.BigInteger a, java.math.BigInteger b)  
      static long modInverse​(long x, int mod)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Mth

        public Mth()
    • Method Detail

      • gcd

        public static double gcd​(double a,
                                 double b)
      • lcm

        public static java.math.BigInteger lcm​(java.math.BigInteger a,
                                               java.math.BigInteger b)
      • modInverse

        public static long modInverse​(long x,
                                      int mod)