* @param null|mixed $a */ public static function static_atan($a = null) { return atan(Normalizer::getPrimitiveValue($a)); } /** * Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#atan2(double,double) * @param null|mixed $a * @param null|mixed $b */ public static function static_atan2($a = null, $b = null) { return atan2(Normalizer::getPrimitiveValue($a), Normalizer::getPrimitiveValue($b)); } /** * Returns the cube root of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#cbrt(double) * @param null|mixed $a */ public static function static_cbrt($a = null) { $a = Normalizer::getPrimitiveValue($a); if ($a >= 0) { return pow($a, 1 / 3); } return -pow(abs($a), 1 / 3); } /** * Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#ceil(double) * @param null|mixed $a */ public static function static_ceil($a = null) { return ceil(Normalizer::getPrimitiveValue($a)); } /** * Returns the first floating-point argument with the sign of the second floating-point argument. * Returns the first floating-point argument with the sign of the second floating-point argument. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#copySign * @param null|mixed $a * @param null|mixed $b */ public static function static_copySign($a = null, $b = null) { $magnitude = Normalizer::getPrimitiveValue($a); $sign = Normalizer::getPrimitiveValue($b); return $sign >= 0 ? abs($magnitude) : -abs($magnitude); } /** * Returns the trigonometric cosine of an angle. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#cos(double) * @param null|mixed $a */ public static function static_cos($a = null) { return cos(Normalizer::getPrimitiveValue($a)); } /** * Returns the hyperbolic cosine of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#cosh(double) * @param null|mixed $a */ public static function static_cosh($a = null) { return cosh(Normalizer::getPrimitiveValue($a)); } /** * Returns the argument decremented by one, throwing an exception if the result overflows an int. * Returns the argument decremented by one, throwing an exception if the result overflows a long. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#decrementExact(int) * @param null|mixed $a */ public static function static_decrementExact($a = null) { return Normalizer::getPrimitiveValue($a) - 1; } /** * Returns Euler's number e raised to the power of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#exp(double) * @param null|mixed $a */ public static function static_exp($a = null) { return exp(Normalizer::getPrimitiveValue($a)); } /** * Returns ex -1. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#expm1(double) * @param null|mixed $a */ public static function static_expm1($a = null) { return expm1(Normalizer::getPrimitiveValue($a)); } /** * Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#floor(double) * @param null|mixed $a */ public static function static_floor($a = null) { return floor(Normalizer::getPrimitiveValue($a)); } /** * Returns the largest (closest to positive infinity) int value that is less than or equal to the algebraic quotient. * Returns the largest (closest to positive infinity) long value that is less than or equal to the algebraic quotient. * Returns the largest (closest to positive infinity) long value that is less than or equal to the algebraic quotient. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#floorDiv(int,int) * @param null|mixed $a * @param null|mixed $b */ public static function static_floorDiv($a = null, $b = null) { $a = Normalizer::getPrimitiveValue($a); $b = Normalizer::getPrimitiveValue($b); return (int) floor($a / $b); } /** * Returns the floor modulus of the int arguments. * Returns the floor modulus of the long and int arguments. * Returns the floor modulus of the long arguments. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#floorMod(int,int) * @param null|mixed $a * @param null|mixed $b */ public static function static_floorMod($a = null, $b = null) { $a = Normalizer::getPrimitiveValue($a); $b = Normalizer::getPrimitiveValue($b); return $a - static::static_floorDiv($a, $b) * $b; } /** * Returns the fused multiply add of the three arguments; that is, returns the exact product of the first two arguments summed with the third argument and then rounded once to the nearest double. * Returns the fused multiply add of the three arguments; that is, returns the exact product of the first two arguments summed with the third argument and then rounded once to the nearest float. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#fma * @param null|mixed $a * @param null|mixed $b * @param null|mixed $c * @throws NotImplementedException */ public static function static_fma($a = null, $b = null, $c = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the unbiased exponent used in the representation of a double. * Returns the unbiased exponent used in the representation of a float. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#getExponent * @param null|mixed $a * @throws NotImplementedException */ public static function static_getExponent($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns sqrt(x2 +y2) without intermediate overflow or underflow. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#hypot * @param null|mixed $a * @param null|mixed $b * @throws NotImplementedException */ public static function static_hypot($a = null, $b = null) { throw new NotImplementedException(__METHOD__); } /** * Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#IEEEremainder * @param null|mixed $a * @param null|mixed $b * @throws NotImplementedException */ public static function static_IEEEremainder($a = null, $b = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the argument incremented by one, throwing an exception if the result overflows an int. * Returns the argument incremented by one, throwing an exception if the result overflows a long. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#incrementExact(int) * @param null|mixed $a */ public static function static_incrementExact($a = null) { return Normalizer::getPrimitiveValue($a) + 1; } /** * Returns the natural logarithm (base e) of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#log(double) * @param null|mixed $a */ public static function static_log($a = null) { return log(Normalizer::getPrimitiveValue($a)); } /** * Returns the base 10 logarithm of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#log10(double) * @param null|mixed $a */ public static function static_log10($a = null) { return log10(Normalizer::getPrimitiveValue($a)); } /** * Returns the natural logarithm of the sum of the argument and 1. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#log1p(double) * @param null|mixed $a */ public static function static_log1p($a = null) { return log1p(Normalizer::getPrimitiveValue($a)); } /** * Returns the greater of two double values. * Returns the greater of two float values. * Returns the greater of two int values. * Returns the greater of two long values. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#max(double,double) * @param null|mixed $a * @param null|mixed $b */ public static function static_max($a = null, $b = null) { return max(Normalizer::getPrimitiveValue($a), Normalizer::getPrimitiveValue($b)); } /** * Returns the smaller of two double values. * Returns the smaller of two float values. * Returns the smaller of two int values. * Returns the smaller of two long values. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#min(double,double) * @param null|mixed $a * @param null|mixed $b */ public static function static_min($a = null, $b = null) { return min(Normalizer::getPrimitiveValue($a), Normalizer::getPrimitiveValue($b)); } /** * Returns the product of the arguments, throwing an exception if the result overflows an int. * Returns the product of the arguments, throwing an exception if the result overflows a long. * Returns the product of the arguments, throwing an exception if the result overflows a long. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#multiplyExact(int,int) * @param null|mixed $a * @param null|mixed $b */ public static function static_multiplyExact($a = null, $b = null) { return Normalizer::getPrimitiveValue($a) * Normalizer::getPrimitiveValue($b); } /** * Returns the exact mathematical product of the arguments. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#multiplyFull(int,int) * @param null|mixed $a * @param null|mixed $b */ public static function static_multiplyFull($a = null, $b = null) { return Normalizer::getPrimitiveValue($a) * Normalizer::getPrimitiveValue($b); } /** * Returns as a long the most significant 64 bits of the 128-bit product of two 64-bit factors. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#multiplyHigh * @param null|mixed $a * @param null|mixed $b * @throws NotImplementedException */ public static function static_multiplyHigh($a = null, $b = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the negation of the argument, throwing an exception if the result overflows an int. * Returns the negation of the argument, throwing an exception if the result overflows a long. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#negateExact * @param null|mixed $a * @throws NotImplementedException */ public static function static_negateExact($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the floating-point number adjacent to the first argument in the direction of the second argument. * Returns the floating-point number adjacent to the first argument in the direction of the second argument. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#nextAfter * @param null|mixed $a * @param null|mixed $b * @throws NotImplementedException */ public static function static_nextAfter($a = null, $b = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the floating-point value adjacent to d in the direction of negative infinity. * Returns the floating-point value adjacent to f in the direction of negative infinity. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#nextDown * @param null|mixed $a * @throws NotImplementedException */ public static function static_nextDown($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the floating-point value adjacent to d in the direction of positive infinity. * Returns the floating-point value adjacent to f in the direction of positive infinity. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#nextUp * @param null|mixed $a * @throws NotImplementedException */ public static function static_nextUp($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the value of the first argument raised to the power of the second argument. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#pow(double,double) * @param null|mixed $a * @param null|mixed $b */ public static function static_pow($a = null, $b = null) { return pow(Normalizer::getPrimitiveValue($a), Normalizer::getPrimitiveValue($b)); } /** * Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#random() */ public static function static_random() { return mt_rand() / mt_getrandmax(); } /** * Returns the double value that is closest in value to the argument and is equal to a mathematical integer. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#rint * @param null|mixed $a * @throws NotImplementedException */ public static function static_rint($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the closest long to the argument, with ties rounding to positive infinity. * Returns the closest int to the argument, with ties rounding to positive infinity. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#round(double) * @param null|mixed $a */ public static function static_round($a = null) { return round(Normalizer::getPrimitiveValue($a)); } /** * Returns d × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the double value set. * Returns f × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the float value set. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#scalb * @param null|mixed $a * @param null|mixed $b * @throws NotImplementedException */ public static function static_scalb($a = null, $b = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero. * Returns the signum function of the argument; zero if the argument is zero, 1.0f if the argument is greater than zero, -1.0f if the argument is less than zero. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#signum * @param null|mixed $a * @throws NotImplementedException */ public static function static_signum($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the trigonometric sine of an angle. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#sin(double) * @param null|mixed $a */ public static function static_sin($a = null) { return sin(Normalizer::getPrimitiveValue($a)); } /** * Returns the hyperbolic sine of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#sinh(double) * @param null|mixed $a */ public static function static_sinh($a = null) { return sinh(Normalizer::getPrimitiveValue($a)); } /** * Returns the correctly rounded positive square root of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#sqrt(double) * @param null|mixed $a */ public static function static_sqrt($a = null) { return sqrt(Normalizer::getPrimitiveValue($a)); } /** * Returns the difference of the arguments, throwing an exception if the result overflows an int. * Returns the difference of the arguments, throwing an exception if the result overflows a long. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#subtractExact(int,int) * @param null|mixed $a * @param null|mixed $b */ public static function static_subtractExact($a = null, $b = null) { return Normalizer::getPrimitiveValue($a) - Normalizer::getPrimitiveValue($b); } /** * Returns the trigonometric tangent of an angle. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#tan(double) * @param null|mixed $a */ public static function static_tan($a = null) { return tan(Normalizer::getPrimitiveValue($a)); } /** * Returns the hyperbolic tangent of a double value. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#tanh(double) * @param null|mixed $a */ public static function static_tanh($a = null) { return tanh(Normalizer::getPrimitiveValue($a)); } /** * Converts an angle measured in radians to an approximately equivalent angle measured in degrees. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#toDegrees * @param null|mixed $a * @throws NotImplementedException */ public static function static_toDegrees($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the value of the long argument; throwing an exception if the value overflows an int. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#toIntExact * @param null|mixed $a * @throws NotImplementedException */ public static function static_toIntExact($a = null) { throw new NotImplementedException(__METHOD__); } /** * Converts an angle measured in degrees to an approximately equivalent angle measured in radians. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#toRadians * @param null|mixed $a * @throws NotImplementedException */ public static function static_toRadians($a = null) { throw new NotImplementedException(__METHOD__); } /** * Returns the size of an ulp of the argument. * Returns the size of an ulp of the argument. * * @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/package-summary.html#ulp * @param null|mixed $a * @throws NotImplementedException */ public static function static_ulp($a = null) { throw new NotImplementedException(__METHOD__); } }