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