public class MathModule extends AbstractQuercusModule
Modifier and Type | Field and Description |
---|---|
static double |
M_1_PI |
static double |
M_2_PI |
static double |
M_2_SQRTPI |
static double |
M_E |
static double |
M_EULER |
static double |
M_LN10 |
static double |
M_LN2 |
static double |
M_LNPI |
static double |
M_LOG10E |
static double |
M_LOG2E |
static double |
M_PI |
static double |
M_PI_2 |
static double |
M_PI_4 |
static double |
M_SQRT1_2 |
static double |
M_SQRT2 |
static double |
M_SQRT3 |
static double |
M_SQRTPI |
static long |
RAND_MAX |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
MathModule() |
Modifier and Type | Method and Description |
---|---|
static Value |
abs(Value value) |
static double |
acos(double value) |
static double |
acosh(Env env,
double value) |
static Value |
asin(Value value) |
static double |
asinh(double value) |
static double |
atan(double value) |
static double |
atan2(double yV,
double xV) |
static double |
atanh(double value) |
static Value |
base_convert(Env env,
StringValue str,
int fromBase,
int toBase)
Convert a number between arbitrary bases
|
static Value |
bindec(Env env,
StringValue bin)
Returns the decimal equivalent of the binary number represented by the
binary string argument.
|
static double |
ceil(double value) |
static double |
cos(double value) |
static double |
cosh(double value) |
static StringValue |
decbin(Env env,
long value)
Returns a binary representation of a number.
|
static StringValue |
dechex(Env env,
long value)
Returns a hexadecimal representation of a number.
|
static StringValue |
decoct(Env env,
long value)
Returns an octal representation of a number.
|
static double |
deg2rad(double value) |
static Value |
exp(Value value) |
static Value |
expm1(Value value) |
static Value |
floor(Value value) |
static double |
fmod(double xV,
double yV) |
static Value |
getrandmax() |
static Value |
hexdec(Env env,
StringValue s) |
static double |
hypot(double a,
double b) |
static boolean |
is_finite(Value value) |
static Value |
is_infinite(Value value) |
static Value |
is_nan(Value value) |
static double |
lcg_value() |
static double |
log(double value) |
static double |
log10(double value) |
static double |
log1p(double value) |
static Value |
max(Env env,
Value[] args) |
static Value |
min(Env env,
Value[] args) |
static Value |
mt_getrandmax() |
static long |
mt_rand(long min,
long max) |
static Value |
mt_srand(long seed) |
static Value |
octdec(Env env,
StringValue oct)
Returns the decimal equivalent of the octal number represented by the
octal_string argument.
|
static double |
pi() |
static double |
pow(double base,
double exp) |
static double |
rad2deg(double value) |
static long |
rand(int min,
int max) |
static double |
round(double value,
int precision) |
static double |
sin(double value) |
static Value |
sinh(Value value) |
static double |
sqrt(double value) |
static Value |
srand(long seed) |
static double |
tan(double value) |
static double |
tanh(double value) |
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
public static final double M_PI
public static final double M_E
public static final long RAND_MAX
public static final double M_LOG2E
public static final double M_LOG10E
public static final double M_LN2
public static final double M_LN10
public static final double M_PI_2
public static final double M_PI_4
public static final double M_1_PI
public static final double M_2_PI
public static final double M_SQRTPI
public static final double M_2_SQRTPI
public static final double M_SQRT2
public static final double M_SQRT3
public static final double M_SQRT1_2
public static final double M_LNPI
public static final double M_EULER
public static double acos(double value)
public static double acosh(Env env, double value)
public static double asinh(double value)
public static double atan2(double yV, double xV)
public static double atan(double value)
public static double atanh(double value)
public static Value base_convert(Env env, StringValue str, int fromBase, int toBase)
number
- A string represeantion of an binary number.fromBase
- The base of the number parameter.toBase
- The base of convert to.public static Value bindec(Env env, StringValue bin)
bin
- A string representation of an binary number.public static double ceil(double value)
public static double cos(double value)
public static double cosh(double value)
public static StringValue decbin(Env env, long value)
value
- the numberpublic static StringValue dechex(Env env, long value)
value
- the numberpublic static StringValue decoct(Env env, long value)
value
- the numberpublic static double deg2rad(double value)
public static double fmod(double xV, double yV)
public static Value hexdec(Env env, StringValue s)
public static double hypot(double a, double b)
public static boolean is_finite(Value value)
public static double log(double value)
public static double log10(double value)
public static double log1p(double value)
public static Value getrandmax()
public static Value mt_getrandmax()
public static long mt_rand(long min, long max)
public static Value mt_srand(long seed)
public static double lcg_value()
public static Value octdec(Env env, StringValue oct)
oct
- A string represeantion of an octal number.public static double pi()
public static double pow(double base, double exp)
public static double rad2deg(double value)
public static long rand(int min, int max)
public static double round(double value, int precision)
public static double sin(double value)
public static double sqrt(double value)
public static Value srand(long seed)
public static double tan(double value)
public static double tanh(double value)