All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.html.lib.Math Maven / Gradle / Ivy

The newest version!
package net.java.html.lib;
public class Math extends net.java.html.lib.Objs {
  protected Math(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(Math.class);
    }
    @Override
    public Math create(java.lang.Object obj) {
      return obj == null ? null : new Math(this, obj);
    }
    @Override
    public Math create(java.lang.Object obj, java.lang.reflect.Type... typeParameters) {
      return obj == null ? null : new Math(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static Math $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
  public static double E = (double)$Typings$.readStaticFields$671();
  /** The natural logarithm of 10. */
  public static double LN10 = (double)$Typings$.readStaticFields$672();
  /** The natural logarithm of 2. */
  public static double LN2 = (double)$Typings$.readStaticFields$673();
  /** The base-2 logarithm of e. */
  public static double LOG2E = (double)$Typings$.readStaticFields$674();
  /** The base-10 logarithm of e. */
  public static double LOG10E = (double)$Typings$.readStaticFields$675();
  /** Pi. This is the ratio of the circumference of a circle to its diameter. */
  public static double PI = (double)$Typings$.readStaticFields$676();
  /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
  public static double SQRT1_2 = (double)$Typings$.readStaticFields$677();
  /** The square root of 2. */
  public static double SQRT2 = (double)$Typings$.readStaticFields$678();
  /**
  * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
  * For example, the absolute value of -5 is the same as the absolute value of 5.
  * @param x A numeric expression for which the absolute value is needed.
  */
  public static double abs(double x) {
    return ((java.lang.Number)$Typings$.abs$679(x)).doubleValue();
  }
  /**
  * Returns the arc cosine (or inverse cosine) of a number.
  * @param x A numeric expression.
  */
  public static double acos(double x) {
    return ((java.lang.Number)$Typings$.acos$680(x)).doubleValue();
  }
  /**
  * Returns the arcsine of a number.
  * @param x A numeric expression.
  */
  public static double asin(double x) {
    return ((java.lang.Number)$Typings$.asin$681(x)).doubleValue();
  }
  /**
  * Returns the arctangent of a number.
  * @param x A numeric expression for which the arctangent is needed.
  */
  public static double atan(double x) {
    return ((java.lang.Number)$Typings$.atan$682(x)).doubleValue();
  }
  /**
  * Returns the angle (in radians) from the X axis to a point.
  * @param y A numeric expression representing the cartesian y-coordinate.
  * @param x A numeric expression representing the cartesian x-coordinate.
  */
  public static double atan2(double y, double x) {
    return ((java.lang.Number)$Typings$.atan2$683(y, x)).doubleValue();
  }
  /**
  * Returns the smallest number greater than or equal to its numeric argument.
  * @param x A numeric expression.
  */
  public static double ceil(double x) {
    return ((java.lang.Number)$Typings$.ceil$684(x)).doubleValue();
  }
  /**
  * Returns the cosine of a number.
  * @param x A numeric expression that contains an angle measured in radians.
  */
  public static double cos(double x) {
    return ((java.lang.Number)$Typings$.cos$685(x)).doubleValue();
  }
  /**
  * Returns e (the base of natural logarithms) raised to a power.
  * @param x A numeric expression representing the power of e.
  */
  public static double exp(double x) {
    return ((java.lang.Number)$Typings$.exp$686(x)).doubleValue();
  }
  /**
  * Returns the greatest number less than or equal to its numeric argument.
  * @param x A numeric expression.
  */
  public static double floor(double x) {
    return ((java.lang.Number)$Typings$.floor$687(x)).doubleValue();
  }
  /**
  * Returns the natural logarithm (base e) of a number.
  * @param x A numeric expression.
  */
  public static double log(double x) {
    return ((java.lang.Number)$Typings$.log$688(x)).doubleValue();
  }
  /**
  * Returns the larger of a set of supplied numeric expressions.
  * @param values Numeric expressions to be evaluated.
  */
  public static double max(double... values) {
    return ((java.lang.Number)$Typings$.max$689(/* ArrayType*/$js(values))).doubleValue();
  }
  /**
  * Returns the smaller of a set of supplied numeric expressions.
  * @param values Numeric expressions to be evaluated.
  */
  public static double min(double... values) {
    return ((java.lang.Number)$Typings$.min$690(/* ArrayType*/$js(values))).doubleValue();
  }
  /**
  * Returns the value of a base expression taken to a specified power.
  * @param x The base value of the expression.
  * @param y The exponent value of the expression.
  */
  public static double pow(double x, double y) {
    return ((java.lang.Number)$Typings$.pow$691(x, y)).doubleValue();
  }
  /** Returns a pseudorandom number between 0 and 1. */
  public static double random() {
    return ((java.lang.Number)$Typings$.random$692()).doubleValue();
  }
  /**
  * Returns a supplied numeric expression rounded to the nearest number.
  * @param x The value to be rounded to the nearest number.
  */
  public static double round(double x) {
    return ((java.lang.Number)$Typings$.round$693(x)).doubleValue();
  }
  /**
  * Returns the sine of a number.
  * @param x A numeric expression that contains an angle measured in radians.
  */
  public static double sin(double x) {
    return ((java.lang.Number)$Typings$.sin$694(x)).doubleValue();
  }
  /**
  * Returns the square root of a number.
  * @param x A numeric expression.
  */
  public static double sqrt(double x) {
    return ((java.lang.Number)$Typings$.sqrt$695(x)).doubleValue();
  }
  /**
  * Returns the tangent of a number.
  * @param x A numeric expression that contains an angle measured in radians.
  */
  public static double tan(double x) {
    return ((java.lang.Number)$Typings$.tan$696(x)).doubleValue();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy