NAME
SPVM::Math - Mathmatical functions
SYNOPSYS
use SPVM::Math;
my $pi = SPVM::Math->pi;
my $sin = SPVM::Math->sin($pi / 4);
DESCRIPTION
SPVM::Math defines mathmatical functions.
STATIC METHODS
FE_DOWNWARD
sub FE_DOWNWARD : int ()
FE_DOWNWARD constant value in C99 fenv.h.
FE_TONEAREST
sub FE_TONEAREST : int ()
FE_TONEAREST constant value in C99 fenv.h.
FE_TOWARDZERO
sub FE_TOWARDZERO : int ()
FE_TOWARDZERO constant value in C99 fenv.h.
FE_UPWARD
sub FE_UPWARD : int ()
FE_UPWARD constant value in C99 fenv.h.
FP_ILOGB0
sub FP_ILOGB0 : int ()
FP_ILOGB0 constant value in C99 fenv.h.
FP_ILOGBNAN
sub FP_ILOGBNAN : int ()
FP_ILOGBNAN constant value in C99 fenv.h.
FP_INFINITE
sub FP_INFINITE : int ()
FP_INFINITE constant value in C99 fenv.h.
FP_NAN
sub FP_NAN : int ()
FP_NAN constant value in C99 fenv.h.
FP_ZERO
sub FP_ZERO : int ()
FP_ZERO constant value in C99 fenv.h.
HUGE_VAL
sub HUGE_VAL : double ()
HUGE_VAL constant value in C99 math.h.
HUGE_VALF
sub HUGE_VALF : float ()
HUGE_VALF constant value in C99 math.h.
INFINITY
sub INFINITY : double ()
INFINITY constant value in C99 math.h.
INFINITYF
sub INFINITYF : float ()
INFINITY constant value for float type in C99 math.h.
NAN
sub NAN : double ()
NAN constant value in C99 math.h.
NANF
sub NANF : float ()
NAN constant value for float type in C99 math.h.
acos
sub acos : double ($x : double)
acos function in C99 math.h.
acosf
sub acosf : float ($x : float)
acosf function in C99 math.h.
acosh
sub acosh : double ($x : double)
acosh function in C99 math.h.
acoshf
sub acoshf : float ($x : float)
acoshf function in C99 math.h.
asin
sub asin : double ($x : double)
asin function in C99 math.h.
asinf
sub asinf : float ($x : float)
asinf function in C99 math.h.
asinh
sub asinh : double ($x : double)
asinh function in C99 math.h.
asinhf
sub asinhf : float ($x : float)
asinhf function in C99 math.h.
atan
sub atan : double ($x : double)
atan function in C99 math.h.
atan2
sub atan2 : double ($y : double, $x : double)
atan2 function in C99 math.h.
atanf
sub atanf : float ($x : float)
atanf function in C99 math.h.
atanh
sub atanh : double ($x : double)
atanh function in C99 math.h.
atanhf
sub atanhf : float ($x : float)
atanhf function in C99 math.h.
cabs
sub cabs : double ($z : SPVM::Complex_2d)
cabs function in C99 complex.h.
cabsf
sub cabsf : float ($z : SPVM::Complex_2f)
cabsf function in C99 complex.h.
cacos
sub cacos : SPVM::Complex_2d ($z : SPVM::Complex_2d)
cacos function in C99 complex.h.
cacosf
sub cacosf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
cacosf function in C99 complex.h.
cacosh
sub cacosh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
cacosh function in C99 complex.h.
cacoshf
sub cacoshf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
cacoshf function in C99 complex.h.
cadd
sub cadd : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
cadd function in C99 complex.h.
caddf
sub caddf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
caddf function in C99 complex.h.
carg
sub carg : double ($z : SPVM::Complex_2d)
carg function in C99 complex.h.
cargf
sub cargf : float ($z : SPVM::Complex_2f)
cargf function in C99 complex.h.
casin
sub casin : SPVM::Complex_2d ($z : SPVM::Complex_2d)
casin function in C99 complex.h.
casinf
sub casinf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
casinf function in C99 complex.h.
casinh
sub casinh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
casinh function in C99 complex.h.
casinhf
sub casinhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
casinhf function in C99 complex.h.
catan
sub catan : SPVM::Complex_2d ($z : SPVM::Complex_2d)
catan function in C99 complex.h.
catanf
sub catanf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
catanf function in C99 complex.h.
catanh
sub catanh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
catanh function in C99 complex.h.
catanhf
sub catanhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
catanhf function in C99 complex.h.
cbrt
sub cbrt : double ($x : double)
cbrt function in C99 math.h.
cbrtf
sub cbrtf : float ($x : float)
cbrtf function in C99 math.h.
ccos
sub ccos : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ccos function in C99 complex.h.
ccosf
sub ccosf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ccosf function in C99 complex.h.
ccosh
sub ccosh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ccosh function in C99 complex.h.
ccoshf
sub ccoshf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ccoshf function in C99 complex.h.
cdiv
sub cdiv : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
double complex division.
cdivf
sub cdivf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
float complex division.
ceil
sub ceil : double ($x : double)
ceil function in C99 math.h.
ceilf
sub ceilf : float ($x : float)
ceilf function in C99 math.h.
cexp
sub cexp : SPVM::Complex_2d ($z : SPVM::Complex_2d)
cexp function in C99 complex.h.
cexpf
sub cexpf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
cexpf function in C99 complex.h.
clog
sub clog : SPVM::Complex_2d ($z : SPVM::Complex_2d)
clog function in C99 complex.h.
clogf
sub clogf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
clogf function in C99 complex.h.
cmul
sub cmul : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
double complex multiplication.
cmulf
sub cmulf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
float complex multiplication.
complex
sub complex : SPVM::Complex_2d ($x : double, $y : double)
Create double complex multi numeric(SPVM::Complex_2d) value.
complexf
sub complexf : SPVM::Complex_2f ($x : float, $y : float)
Create float complex multi numeric(SPVM::Complex_2f) value.
conj
sub conj : SPVM::Complex_2d ($z : SPVM::Complex_2d)
conj function in C99 complex.h.
conjf
sub conjf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
conjf function in C99 complex.h.
copysign
sub copysign : double ($x1 : double, $x2 : double)
copysign function in C99 math.h.
copysignf
sub copysignf : float ($x1 : float, $x2 : float)
copysignf function in C99 math.h.
cos
sub cos : double ($x : double)
cos function in C99 math.h.
cosf
sub cosf : float ($x : float)
cosf function in C99 math.h.
cosh
sub cosh : double ($x : double)
cosh function in C99 math.h.
coshf
sub coshf : float ($x : float)
coshf function in C99 math.h.
cpow
sub cpow : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
cpow function in C99 complex.h.
cpowf
sub cpowf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
cpowf function in C99 complex.h.
cproj
sub cproj : SPVM::Complex_2d ($z : SPVM::Complex_2d)
cproj function in C99 complex.h.
cprojf
sub cprojf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
cprojf function in C99 complex.h.
cscamul
sub cscamul : SPVM::Complex_2d ($c : double, $z : SPVM::Complex_2d)
double complex scalar multiplication.
cscamulf
sub cscamulf : SPVM::Complex_2f ($c : float, $z : SPVM::Complex_2f)
float complex scalar multiplication.
csin
sub csin : SPVM::Complex_2d ($z : SPVM::Complex_2d)
csin function in C99 complex.h.
csinf
sub csinf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
csinf function in C99 complex.h.
csinh
sub csinh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
csinh function in C99 complex.h.
csinhf
sub csinhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
csinhf function in C99 complex.h.
csqrt
sub csqrt : SPVM::Complex_2d ($z : SPVM::Complex_2d)
csqrt function in C99 complex.h.
csqrtf
sub csqrtf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
csqrtf function in C99 complex.h.
csub
sub csub : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
csub function in C99 complex.h.
csubf
sub csubf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
csubf function in C99 complex.h.
ctan
sub ctan : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ctan function in C99 complex.h.
ctanf
sub ctanf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ctanf function in C99 complex.h.
ctanh
sub ctanh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ctanh function in C99 complex.h.
ctanhf
sub ctanhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ctanhf function in C99 complex.h.
erf
sub erf : double ($x : double)
erf function in C99 math.h.
erfc
sub erfc : double ($x : double)
erfc function in C99 math.h.
erfcf
sub erfcf : float ($x : float)
erfcf function in C99 math.h.
erff
sub erff : float ($x : float)
erff function in C99 math.h.
exp
sub exp : double ($x : double)
exp function in C99 math.h.
exp2
sub exp2 : double ($x : double)
exp2 function in C99 math.h.
exp2f
sub exp2f : float ($x : float)
exp2f function in C99 math.h.
expf
sub expf : float ($x : float)
expf function in C99 math.h.
expm1
sub expm1 : double ($x : double)
expm1 function in C99 math.h.
expm1f
sub expm1f : float ($x : float)
expm1f function in C99 math.h.
fabs
sub fabs : double ($x : double)
fabs function in C99 math.h.
fabsf
sub fabsf : float ($x : float)
fabsf function in C99 math.h.
fdim
sub fdim : double ($x1 : double, $x2 : double)
fdim function in C99 math.h.
fdimf
sub fdimf : float ($x1 : float, $x2 : float)
fdimf function in C99 math.h.
fesetround
sub fesetround : int ($round : int)
fesetround function in C99 math.h.
floor
sub floor : double ($x : double)
floor function in C99 math.h.
floorf
sub floorf : float ($x : float)
floorf function in C99 math.h.
fma
sub fma : double ($x1 : double, $x2 : double, $x3 : double)
fma function in C99 math.h.
fmaf
sub fmaf : float ($x1 : float, $x2 : float, $x3 : float)
fmaf function in C99 math.h.
fmax
sub fmax : double ($x1 : double, $x2 : double)
fmax function in C99 math.h.
fmaxf
sub fmaxf : float ($x1 : float, $x2 : float)
fmaxf function in C99 math.h.
fmin
sub fmin : double ($x1 : double, $x2 : double)
fmin function in C99 math.h.
fminf
sub fminf : float ($x1 : float, $x2 : float)
fminf function in C99 math.h.
fmod
sub fmod : double ($x1 : double, $x2 : double)
fmod function in C99 math.h.
fmodf
sub fmodf : float ($x1 : float, $x2 : float)
fmodf function in C99 math.h.
fpclassify
sub fpclassify : int ($x : double)
fpclassify function in C99 math.h.
fpclassifyf
sub fpclassifyf : int ($x : float)
fpclassify function in C99 math.h for float type.
frexp
sub frexp : double ($x : double, $exp : int&)
frexp function in C99 math.h.
frexpf
sub frexpf : float ($x : float, $exp : int&)
frexpf function in C99 math.h.
hypot
sub hypot : double ($x : double, $y : double)
hypot function in C99 math.h.
hypotf
sub hypotf : float ($x : float, $y : float)
hypotf function in C99 math.h.
ilogb
sub ilogb : int ($x : double)
ilogb function in C99 math.h.
ilogbf
sub ilogbf : int ($x : float)
ilogbf function in C99 math.h.
isfinite
sub isfinite : int ($x : double)
isfinite function in C99 math.h.
isfinitef
sub isfinitef : int($x : float)
isfinite function in C99 math.h for float type.
isgreater
sub isgreater : int ($x1 : double, $x2 : double)
isgreater function in C99 math.h.
isgreaterequal
sub isgreaterequal : int ($x1 : double, $x2 : double)
isgreaterequal function in C99 math.h for float type.
isgreaterequalf
sub isgreaterequalf : int ($x1 : float, $x2 : float)
isgreaterequal function in C99 math.h for float type.
isgreaterf
sub isgreaterf : int ($x1 : float, $x2 : float)
isgreater function in C99 math.h for float type.
isinf
sub isinf : int ($x : double)
isinf function in C99 math.h.
isinff
sub isinff : int($x : float)
isinf function in C99 math.h for float type.
isless
sub isless : int ($x1 : double, $x2 : double)
isless function in C99 math.h.
islessequal
sub islessequal : int ($x1 : double, $x2 : double)
islessequal function in C99 math.h.
islessequalf
sub islessequalf : int ($x1 : float, $x2 : float)
islessequalf function in C99 math.h for float type.
islessf
sub islessf : int ($x1 : float, $x2 : float)
islessf function in C99 math.h for float type.
islessgreater
sub islessgreater : int ($x1 : double, $x2 : double)
islessgreater function in C99 math.h for float type.
islessgreaterf
sub islessgreaterf : int ($x1 : float, $x2 : float)
islessgreater function in C99 math.h.
isnan
sub isnan : int ($x : double)
isnan function in C99 math.h.
isnanf
sub isnanf : int ($x : float)
isnanf function in C99 math.h.
isunordered
sub isunordered : int ($x1 : double, $x2 : double)
isunordered function in C99 math.h.
isunorderedf
sub isunorderedf : int ($x1 : float, $x2 : float)
isunorderedf function in C99 math.h.
ldexp
sub ldexp : double ($x : double, $exp : int)
ldexp function in C99 math.h.
ldexpf
sub ldexpf : float ($x : float, $exp : int)
ldexpf function in C99 math.h.
lgamma
sub lgamma : double ($x : double)
lgamma function in C99 math.h.
lgammaf
sub lgammaf : float ($x : float)
lgammaf function in C99 math.h.
log
sub log : double ($x : double)
log function in C99 math.h.
log10
sub log10 : double ($x : double)
log10 function in C99 math.h.
log10f
sub log10f : float ($x : float)
log10f function in C99 math.h.
log1p
sub log1p : double ($x : double)
log1p function in C99 math.h.
log1pf
sub log1pf : float ($x : float)
log1pf function in C99 math.h.
log2
sub log2 : double ($x : double)
log2 function in C99 math.h.
log2f
sub log2f : float ($x : float)
log2f function in C99 math.h.
logb
sub logb : double ($x : double)
logb function in C99 math.h.
logbf
sub logbf : float ($x : float)
logbf function in C99 math.h.
logf
sub logf : float ($x : float)
logf function in C99 math.h.
lround
sub lround : long ($x : double)
lround function in C99 math.h.
lroundf
sub lroundf : long ($x : float)
lroundf function in C99 math.h.
modf
sub modf : double ($x : double, $intpart : double&)
modf function in C99 math.h.
modff
sub modff : float ($x : float, $intpart : float&)
modff function in C99 math.h.
nan
sub nan : double ($str : string)
nan function in C99 math.h.
nanf
sub nanf : float ($str : string)
nanf function in C99 math.h.
nearbyint
sub nearbyint : double ($x : double)
nearbyint function in C99 math.h.
nearbyintf
sub nearbyintf : float ($x : float)
nearbyintf function in C99 math.h.
nextafter
sub nextafter : double ($x1 : double, $x2 : double)
nextafter function in C99 math.h.
nextafterf
sub nextafterf : float ($x1 : float, $x2 : float)
nextafterf function in C99 math.h.
nexttoward
sub nexttoward : double ($x1 : double, $x2 : double)
nexttoward function in C99 math.h.
nexttowardf
sub nexttowardf : float ($x1 : float, $x2 : double)
nexttowardf function in C99 math.h.
pi
sub pi : double ()
pi constant value. 3.141592653589793115997963468544185161590576171875
pow
sub pow : double ($x : double, $y : double)
pow function in C99 math.h.
powf
sub powf : float ($x : float, $y : float)
powf function in C99 math.h.
remainder
sub remainder : double ($x1 : double, $x2 : double)
remainder function in C99 math.h.
remainderf
sub remainderf : float ($x1 : float, $x2 : float)
remainderf function in C99 math.h.
remquo
sub remquo : double ($x1 : double, $x2 : double, $quo : int&)
remquo function in C99 math.h.
remquof
sub remquof : float ($x1 : float, $x2 : float, $quo : int&)
remquof function in C99 math.h.
round
sub round : double ($x : double)
round function in C99 math.h.
roundf
sub roundf : float ($x : float)
roundf function in C99 math.h.
scalbln
sub scalbln : double ($x : double, $exp : long)
scalbln function in C99 math.h.
scalblnf
sub scalblnf : float ($x : float, $exp : long)
scalblnf function in C99 math.h.
scalbn
sub scalbn : double ($x : double, $exp : int)
scalbn function in C99 math.h.
scalbnf
sub scalbnf : float ($x : float, $exp : int)
scalbnf function in C99 math.h.
signbit
sub signbit : int ($x : double)
signbit function in C99 math.h.
signbitf
sub signbitf : int ($x : float)
signbitf function in C99 math.h.
sin
sub sin : double ($x : double)
sin function in C99 math.h.
sinf
sub sinf : float ($x : float)
sinf function in C99 math.h.
sinh
sub sinh : double ($x : double)
sinh function in C99 math.h.
sinhf
sub sinhf : float ($x : float)
sinhf function in C99 math.h.
sqrt
sub sqrt : double ($x : double)
sqrt function in C99 math.h.
sqrtf
sub sqrtf : float ($x : float)
sqrtf function in C99 math.h.
tan
sub tan : double ($x : double)
tan function in C99 math.h.
sqrtf
sqrtf function in C99 math.h.
tanf
sub tanf : float ($x : float)
tanf function in C99 math.h.
tanh
sub tanh : double ($x : double)
tanh function in C99 math.h.
tanhf
sub tanhf : float ($x : float)
tanhf function in C99 math.h.
tgamma
sub tgamma : double ($x : double)
tgamma function in C99 math.h.
tgammaf
sub tgammaf : float ($x : float)
tgammaf function in C99 math.h.
trunc
sub trunc : double ($x : double)
trunc function in C99 math.h.
truncf
sub truncf : float ($x : float)
truncf function in C99 math.h.