Class Math

java.lang.Object
fr.iMath.mathematics.Math

public class Math
extends java.lang.Object
Basic mathematics equations
Author:
HESEQUE Antoine, JEANNIN Louis
  • Constructor Summary

    Constructors 
    Constructor Description
    Math()  
  • Method Summary

    Modifier and Type Method Description
    static float add​(float a, float b)
    Add two floats.
    static float divide​(float a, float b)
    Divide two floats.
    static float exp​(float a)
    Exponential function function.
    static float ln​(float a)
    Power function.
    static float multiply​(float a, float b)
    Multiply two floats.
    static float power​(float a, float b)
    Power function.
    static float sqrt​(float a)
    Sqrt function.
    static float substract​(float a, float b)
    Substract two floats.

    Methods inherited from class java.lang.Object

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

    • Math

      public Math()
  • Method Details

    • add

      public static float add​(float a, float b)
      Add two floats.
      Parameters:
      a - First number
      b - Second number
      Returns:
      a+b
    • substract

      public static float substract​(float a, float b)
      Substract two floats.
      Parameters:
      a - First number
      b - Second number
      Returns:
      b-a
    • multiply

      public static float multiply​(float a, float b)
      Multiply two floats.
      Parameters:
      a - First number
      b - Second number
      Returns:
      a*b
    • divide

      public static float divide​(float a, float b)
      Divide two floats.
      Parameters:
      a - First number
      b - Second number
      Returns:
      a/b
    • power

      public static float power​(float a, float b)
      Power function.
      Parameters:
      a - First number
      b - Second number
      Returns:
      pow(a,b)
    • ln

      public static float ln​(float a)
      Power function.
      Parameters:
      a - number
      Returns:
      ln(a)
    • sqrt

      public static float sqrt​(float a)
      Sqrt function.
      Parameters:
      a - First number
      Returns:
      sqrt(a)
    • exp

      public static float exp​(float a)
      Exponential function function.
      Parameters:
      a - First number
      Returns:
      exp(a)