
NOTE! The onedimensional arrays methods have been improved and moved to the ArrayMaths class. The conversion of physical units and copying 1D, 2D and 3D arrays and copying an object methods have now been incorporated into the Conv class. The write arrays to screen methods have now been incorporated into the PrintToScreen class. Those methods that were part of the Fmath class will be retained in Fmath for compatibility purposes. Their old documentation can now be found on FmathDeprecatedMethods. 
Trigonometric Functions (additional to those in java.lang.Math) 
Cotangent  public static double cot(double a) 
Secant  public static double sec(double a)  
Cosecant  public static double csc(double a)  
Exsecant  public static double exsec(double a)  
Versine  public static double vers(double a)  
Coversine  public static double covers(double a)  
Haversine  public static double hav(double a)  
Unnormalised sinc (Unnormalised sine cardinal)  public static double sinc(double a)  
Normalised sinc (Normalised sine cardinal)  public static double nsinc(double a)  
Hyperbolic sine  public static double sinh(double a)  
Hyperbolic cosine  public static double cosh(double a)  
Hyperbolic tangent  public static double tanh(double a)  
Hyperbolic cotangent  public static double coth(double a)  
Hyperbolic secant  public static double sech(double a)  
Hyperbolic cosecant  public static double csch(double a)  
Inverse cotangent  public static double acot(double a)  
public static double acot2(double a, double b)  
Inverse secant  public static double asec(double a)  
Inverse cosecant  public static double acsc(double a)  
Inverse exsecant  public static double aexsec(double a)  
Inverse versine  public static double avers(double a)  
Inverse coversine  public static double acovers(double a)  
Inverse haversine  public static double ahav(double a)  
Inverse hyperbolic sine  public static double asinh(double a)  
Inverse hyperbolic cosine  public static double acosh(double a)  
Inverse hyperbolic tangent  public static double atanh(double a)  
Inverse hyperbolic cotangent  public static double acoth(double a)  
Inverse hyperbolic secant  public static double asech(double a)  
Inverse hyperbolic cosecant  public static double acsch(double a)  
Angles of a triangle  public static double angle(double sideAC, double sideBC, double sideAB)  
public static double angle(double xAtA, double yAtA, double xAtB, double yAtB, double xAtC, double yAtC)  
Sine  public static double sin(double sideAC, double sideBC, double sideAB)  
public static double sin(double xAtA, double yAtA, double xAtB, double yAtB, double xAtC, double yAtC)  
public static double sin(double radians)  
Inverse sine  public static double asin(double a)  
Cosine  public static double cos(double sideAC, double sideBC, double sideAB)  
public static double cos(double xAtA, double yAtA, double xAtB, double yAtB, double xAtC, double yAtC)  
public static double cos(double radians)  
Inverse cosine  public static double acos(double a)  
Tangent  public static double tan(double sideAC, double sideBC, double sideAB)  
public static double tan(double xAtA, double yAtA, double xAtB, double yAtB, double xAtC, double yAtC)  
public static double atan(double radians)  
Inverse tangent  public static double atan(double a) public static double atan2(double a, double a)  
Hypotenuse  public static double hypot(double a, double b)  
public static float hypot(float a, float b)  
Factorials  Factorial  public static int factorial(int n) 
public static long factorial(long n)  
public static BigInteger factorial(BigInteger n)  
public static double factorial(double n)  
public static BigDecimal factorial(BigDecimal n)  
log(factorial)  public static double logFactorial(int n)  
public static double logFactorial(long n)  
public static double logFactorial(double n)  
Logarithms  Log to base b  public static double log(double x, double b) 
public static double log(double x, int b)  
public static float log(float x, float b)  
public static float log(float x, int b)  
Log to base 2  public static double log2(double x)  
public static float log2(float x)  
public static double antilog2(double x)  
public static float antilog2(float x)  
Log to base 10  public static double log10(double x)  
public static float log10(float x)  
public static double antilog10(double x)  
public static float antilog10(float x)  
Log to base e  public static double log(double x)  
public static float log(float x)  
public static double antilog(double x)  
public static float antilog(float x)  
Square  public static double square(double a)  
public static float square(float a)  
public static BigDecimal square(BigDecimal a)  
public static int square(int a)  
public static long square(long a)  
public static BigInteger square(BigInteger a)  
Sign  public static double sign(double a)  
public static float sign(float a)  
public static int sign(int a)  
Check precision  public static int checkPrecision(double x)  
public static int checkPrecision(float x)  
Truncate mantissa to n places  public static double truncate(double x, int n)  
public static float truncate(float x, int n)  
See Complex Class for truncation of Complex numbers. See Phasor Class for truncation of Phasor numbers. See ErrorProp Class for truncation of ErrorProp numbers. See ComplexErrorProp Class for truncation of ComplexErrorProp numbers  
Logical tests  Compare (equal, less or greater than)  public static int compare(double x, double y) 
public static int compare(float x, float y)  
public static int compare(long x, long y)  
public static int compare(int x, int y)  
public static int compare(short x, short y)  
public static int compare(byte x, byte y)  
Compare 1D arrays (true if identical) 
public static boolean compare(double[] array1, double[] array2)  
public static boolean compare(float[] array1, float[] array2)  
public static boolean compare(long[] array1, long[] array2)  
public static boolean compare(int[] array1, int[] array2)  
Infinity  public static boolean isInfinity(double x)  
public static boolean isInfinity(float x)  
Positive Infinity  public static boolean isPlusInfinity(double x)  
public static boolean isPlusInfinity(float x)  
Negative Infinity  public static boolean isMinusInfinity(double x)  
public static boolean isMinusInfinity(float x)  
NaN (notanumber)  public static boolean isNaN(double x)  
public static boolean isNaN(float x)  
Equalities  public static boolean isEqual(double x, double y)  
public static boolean isEqual(float x, float y)  
public static boolean isEqual(int x, int y)  
public static boolean isEqual(char x, char y)  
public static boolean isEqual(String x, String y)  
Equalities within limits  public static boolean isEqualWithinLimits(double x, double y, double limit)  
public static boolean isEqualWithinLimits(float x, float y, float limit)  
public static boolean isEqualWithinLimits(long x, long y, long limit)  
public static boolean isEqualWithinLimits(int x, int y, int limit)  
public static boolean isEqualWithinLimits(BigDecimal x, BigDecimal y, BigDecimal limit)  
public static boolean isEqualWithinLimits(BigInteger x, BigInteger y, BigInteger limit)  
Equalities within a percentage of the mean  public static boolean isEqualWithinPerCent(double x, double y, double percentage)  
public static boolean isEqualWithinPerCent(float x, float y, float percentage)  
public static boolean isEqualWithinPerCent(long x, long y, double percentage)  
public static boolean isEqualWithinPerCent(long x, long y, long percentage)  
public static boolean isEqualWithinPerCent(int x, int y, double percentage)  
public static boolean isEqualWithinPerCent(int x, int y, int percentage)  
public static boolean isEqualWithinPerCent(BigDecimal x, BigDecimal y, BigDecimal percentage)  
public static boolean isEqualWithinPerCent(BigInteger x, BigInteger y, BigDecimal percentage)  
public static boolean isEqualWithinPerCent(BigInteger x, BigInteger y, BigInteger percentage)  
Integer  public static boolean isInteger(double x)  
public static boolean isInteger(Double x)  
public static boolean isInteger(float x)  
public static boolean isInteger(Float x)  
public static boolean isInteger(BigDecimal x)  
public static boolean isInteger(double[] x)  
public static boolean isInteger(Double[] x)  
public static boolean isInteger(float[] x)  
public static boolean isInteger(Float[] x)  
public static boolean isInteger(BigDecimal[] x)  
Even number  public static boolean isEven(int x)  
public static boolean isEven(float x)  
public static boolean isEven(double x)  
Odd number  public static boolean isOdd(int x)  
public static boolean isOdd(float x)  
public static boolean isOdd(double x)  
Is a year a leap year?  public static boolean leapYear(int year) 
Constants  Avagadro constant  [mol^{1}]  public static final double N_AVAGADRO = 6.0221419947e23; 
Boltzmann constant  [J K^{1}]  public static final double K_BOLTZMANN = 1.380650324e23;  
Planck constant  [J s]  public static final double H_PLANCK = 6.6260687652e34;  
Reduced Planck constant  [J s]  public static final double H_PLANCK_RED = H_PLANCK/(2*PI);  
Speed of light in vacuo  [m s^{1}]  public static final double C_LIGHT = 2.99792458e8;  
Molar gas constant  [J K^{1} mol^{1}]  public static final double R_GAS = 8.31447215;  
Faraday constant  [C mol^{1}]  public static final double F_FARADAY = 9.6485341539e4;  
Absolute zero  [Celsius]  public static final double T_ABS = 273.15;  
Charge on the electron  [C]  public static final double Q_ELECTRON = 1.60217646263e19;  
Rest mass of the electron  [kg]  public static final double M_ELECTRON = 9.1093818872e31;  
Rest mass of the proton  [kg]  public static final double M_PROTON = 1.6726215813e27;  
Rest mass of the neutron  [kg]  public static final double M_NEUTRON = 1.6749271613e27;  
Electrical permittivity of free space  [F m^{1}]  public static final double EPSILON_0 = 8.854187817e12;  
Magnetic permeability of free space  [H m^{1} (N A^{2})]  public static final double MU_0 = PI*4e7;  
Characteristic impedance of free space  [Ohms]  public static final double ETA_0 = MU_0*C_LIGHT;  
Euler's constant (gamma)  public static final double EULER_CONSTANT_GAMMA = 0.5772156649015627;  
π (the ratio of the circumference of a circle to its diameter) 
public static final double PI = Math.PI; [3.141592653589793]  
e (the base of the natural logarithms)  public static final double E = Math.E; [2.718281828459045] 