SPVM::Math - Math functions
use SPVM::Math; my $sin = SPVM::Math->sin(SPVM::Math->PI / 4);
SPVM::Math defines mathmatical functions.
sub abs : int ($x : int);
Get the abusolute value of a int value.
sub acos : double ($x : double)
acos function defined in C language math.h.
sub acosf : float ($x : float)
acosf function defined in C language math.h.
sub acosh : double ($x : double)
acosh function defined in C language math.h.
sub acoshf : float ($x : float)
acoshf function defined in C language math.h.
sub asin : double ($x : double)
asin function defined in C language math.h.
sub asinf : float ($x : float)
asinf function defined in C language math.h.
sub asinh : double ($x : double)
asinh function defined in C language math.h.
sub asinhf : float ($x : float)
asinhf function defined in C language math.h.
sub atan : double ($x : double)
atan function defined in C language math.h.
sub atan2 : double ($y : double, $x : double)
atan2 function defined in C language math.h.
sub atanf : float ($x : float)
atanf function defined in C language math.h.
sub atanh : double ($x : double)
atanh function defined in C language math.h.
sub atanhf : float ($x : float)
atanhf function defined in C language math.h.
sub cabs : double ($z : SPVM::Complex_2d)
cabs function defined in C language complex.h.
sub cabsf : float ($z : SPVM::Complex_2f)
cabsf function defined in C language complex.h.
sub cacos : SPVM::Complex_2d ($z : SPVM::Complex_2d)
cacos function defined in C language complex.h.
sub cacosf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
cacosf function defined in C language complex.h.
sub cacosh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
cacosh function defined in C language complex.h.
sub cacoshf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
cacoshf function defined in C language complex.h.
sub cadd : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
cadd function defined in C language complex.h.
sub caddf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
caddf function defined in C language complex.h.
sub carg : double ($z : SPVM::Complex_2d)
carg function defined in C language complex.h.
sub cargf : float ($z : SPVM::Complex_2f)
cargf function defined in C language complex.h.
sub casin : SPVM::Complex_2d ($z : SPVM::Complex_2d)
casin function defined in C language complex.h.
sub casinf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
casinf function defined in C language complex.h.
sub casinh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
casinh function defined in C language complex.h.
sub casinhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
casinhf function defined in C language complex.h.
sub catan : SPVM::Complex_2d ($z : SPVM::Complex_2d)
catan function defined in C language complex.h.
sub catanf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
catanf function defined in C language complex.h.
sub catanh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
catanh function defined in C language complex.h.
sub catanhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
catanhf function defined in C language complex.h.
sub cbrt : double ($x : double)
cbrt function defined in C language math.h.
sub cbrtf : float ($x : float)
cbrtf function defined in C language math.h.
sub ccos : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ccos function defined in C language complex.h.
sub ccosf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ccosf function defined in C language complex.h.
sub ccosh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ccosh function defined in C language complex.h.
sub ccoshf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ccoshf function defined in C language 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 defined in C language math.h.
sub ceilf : float ($x : float)
ceilf function defined in C language math.h.
sub cexp : SPVM::Complex_2d ($z : SPVM::Complex_2d)
cexp function defined in C language complex.h.
sub cexpf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
cexpf function defined in C language complex.h.
sub clog : SPVM::Complex_2d ($z : SPVM::Complex_2d)
clog function defined in C language complex.h.
sub clogf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
clogf function defined in C language 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 value. This value is defined in SPVM::Complex_2d.
sub complexf : SPVM::Complex_2f ($x : float, $y : float)
Create float complex value. This value is defined in SPVM::Complex_2f.
sub conj : SPVM::Complex_2d ($z : SPVM::Complex_2d)
conj function defined in C language complex.h.
sub conjf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
conjf function defined in C language complex.h.
sub copysign : double ($x1 : double, $x2 : double)
copysign function defined in C language math.h.
sub copysignf : float ($x1 : float, $x2 : float)
copysignf function defined in C language math.h.
sub cos : double ($x : double)
cos function defined in C language math.h.
sub cosf : float ($x : float)
cosf function defined in C language math.h.
sub cosh : double ($x : double)
cosh function defined in C language math.h.
sub coshf : float ($x : float)
coshf function defined in C language math.h.
sub cpow : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
cpow function defined in C language complex.h.
sub cpowf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
cpowf function defined in C language 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 defined in C language complex.h.
sub csinf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
csinf function defined in C language complex.h.
sub csinh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
csinh function defined in C language complex.h.
sub csinhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
csinhf function defined in C language complex.h.
sub csqrt : SPVM::Complex_2d ($z : SPVM::Complex_2d)
csqrt function defined in C language complex.h.
sub csqrtf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
csqrtf function defined in C language complex.h.
sub csub : SPVM::Complex_2d ($z1 : SPVM::Complex_2d, $z2 : SPVM::Complex_2d)
csub function defined in C language complex.h.
sub csubf : SPVM::Complex_2f ($z1 : SPVM::Complex_2f, $z2 : SPVM::Complex_2f)
csubf function defined in C language complex.h.
sub ctan : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ctan function defined in C language complex.h.
sub ctanf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ctanf function defined in C language complex.h.
sub ctanh : SPVM::Complex_2d ($z : SPVM::Complex_2d)
ctanh function defined in C language complex.h.
sub ctanhf : SPVM::Complex_2f ($z : SPVM::Complex_2f)
ctanhf function defined in C language complex.h.
sub E : double ()
Euler’s Number e. This value is 0x1.5bf0a8b145769p+1.
sub erf : double ($x : double)
erf function defined in C language math.h.
sub erfc : double ($x : double)
erfc function defined in C language math.h.
sub erfcf : float ($x : float)
erfcf function defined in C language math.h.
sub erff : float ($x : float)
erff function defined in C language math.h.
sub exp : double ($x : double)
exp function defined in C language math.h.
sub exp2 : double ($x : double)
exp2 function defined in C language math.h.
sub exp2f : float ($x : float)
exp2f function defined in C language math.h.
sub expf : float ($x : float)
expf function defined in C language math.h.
sub expm1 : double ($x : double)
expm1 function defined in C language math.h.
sub expm1f : float ($x : float)
expm1f function defined in C language math.h.
sub fabs : double ($x : double)
fabs function defined in C language math.h.
sub fabsf : float ($x : float)
fabsf function defined in C language math.h.
sub fdim : double ($x1 : double, $x2 : double)
fdim function defined in C language math.h.
sub fdimf : float ($x1 : float, $x2 : float)
fdimf function defined in C language math.h.
sub FE_DOWNWARD : int ()
FE_DOWNWARD macro defined in C language fenv.h.
sub FE_TONEAREST : int ()
FE_TONEAREST macro defined in C language fenv.h.
sub FE_TOWARDZERO : int ()
FE_TOWARDZERO macro defined in C language fenv.h.
sub FE_UPWARD : int ()
FE_UPWARD macro defined in C language fenv.h.
sub fesetround : int ($round : int)
fesetround function defined in C language math.h.
sub floor : double ($x : double)
floor function defined in C language math.h.
sub floorf : float ($x : float)
floorf function defined in C language math.h.
sub fma : double ($x1 : double, $x2 : double, $x3 : double)
fma function defined in C language math.h.
sub fmaf : float ($x1 : float, $x2 : float, $x3 : float)
fmaf function defined in C language math.h.
sub fmax : double ($x1 : double, $x2 : double)
fmax function defined in C language math.h.
sub fmaxf : float ($x1 : float, $x2 : float)
fmaxf function defined in C language math.h.
sub fmin : double ($x1 : double, $x2 : double)
fmin function defined in C language math.h.
sub fminf : float ($x1 : float, $x2 : float)
fminf function defined in C language math.h.
sub fmod : double ($x1 : double, $x2 : double)
fmod function defined in C language math.h.
sub fmodf : float ($x1 : float, $x2 : float)
fmodf function defined in C language math.h.
sub FP_ILOGB0 : int ()
FP_ILOGB0 macro defined in C language fenv.h.
sub FP_ILOGBNAN : int ()
FP_ILOGBNAN macro defined in C language fenv.h.
sub FP_INFINITE : int ()
FP_INFINITE macro defined in C language fenv.h.
sub FP_NAN : int ()
FP_NAN macro defined in C language fenv.h.
sub FP_ZERO : int ()
FP_ZERO macro defined in C language fenv.h.
sub fpclassify : int ($x : double)
fpclassify macro defined in C language math.h. This method receives a double value.
sub fpclassifyf : int ($x : float)
fpclassify macro defined in C language math.h for float type. This method receives a float value.
sub frexp : double ($x : double, $exp : int&)
frexp function defined in C language math.h.
sub frexpf : float ($x : float, $exp : int&)
frexpf function defined in C language math.h.
sub HUGE_VAL : double ()
HUGE_VAL macro defined in C language math.h.
sub HUGE_VALF : float ()
HUGE_VALF macro defined in C language math.h.
sub hypot : double ($x : double, $y : double)
hypot function defined in C language math.h.
sub hypotf : float ($x : float, $y : float)
hypotf function defined in C language math.h.
sub ilogb : int ($x : double)
ilogb function defined in C language math.h.
sub ilogbf : int ($x : float)
ilogbf function defined in C language math.h.
sub INFINITY : double ()
INFINITY macro defined in C language math.h. This method returns a double value.
sub INFINITYF : float ()
INFINITY macro for float type defined in C language math.h. This method returns a float value.
sub isfinite : int ($x : double)
isfinite macro defined in C language math.h. This method receives a double value.
sub isfinitef : int($x : float)
isfinite macro defined in C language math.h for float type. This method receives a float value.
sub isgreater : int ($x1 : double, $x2 : double)
isgreater macro defined in C language math.h. This method receives two double values.
sub isgreaterequal : int ($x1 : double, $x2 : double)
isgreaterequal macro defined in C language math.h. This method receives two double values.
sub isgreaterequalf : int ($x1 : float, $x2 : float)
isgreaterequal macro defined in C language math.h. This method receives two float values.
sub isgreaterf : int ($x1 : float, $x2 : float)
isgreater macro defined in C language math.h. This method receives two float values.
sub isinf : int ($x : double)
isinf macro defined in C language math.h. This method receives a double value.
sub isinff : int($x : float)
isinf macro defined in C language math.h. This method receives a float value.
sub isless : int ($x1 : double, $x2 : double)
isless macro defined in C language math.h. This method receives two double values.
sub islessequal : int ($x1 : double, $x2 : double)
islessequal macro defined in C language math.h. This method receives two double values.
sub islessequalf : int ($x1 : float, $x2 : float)
islessequalf macro defined in C language math.h. This method receives two float values.
sub islessf : int ($x1 : float, $x2 : float)
islessf macro defined in C language math.h. This method receives two float values.
sub islessgreater : int ($x1 : double, $x2 : double)
islessgreater macro defined in C language math.h. This method receives two double values.
sub islessgreaterf : int ($x1 : float, $x2 : float)
islessgreater macro defined in C language math.h. This method receives two float values.
sub isnan : int ($x : double)
isnan macro defined in C language math.h. This method receives a double value.
sub isnanf : int ($x : float)
isnanf macro defined in C language math.h. This method receives a float value.
sub isunordered : int ($x1 : double, $x2 : double)
isunordered macro defined in C language math.h. This method receives two double values.
sub isunorderedf : int ($x1 : float, $x2 : float)
isunorderedf macro defined in C language math.h. This method receives two float values.
sub labs : long ($x : long);
Get the abusolute value of a long value.
sub ldexp : double ($x : double, $exp : int)
ldexp function defined in C language math.h.
sub ldexpf : float ($x : float, $exp : int)
ldexpf function defined in C language math.h.
sub lgamma : double ($x : double)
lgamma function defined in C language math.h.
sub lgammaf : float ($x : float)
lgammaf function defined in C language math.h.
sub log : double ($x : double)
log function defined in C language math.h.
sub log10 : double ($x : double)
log10 function defined in C language math.h.
sub log10f : float ($x : float)
log10f function defined in C language math.h.
sub log1p : double ($x : double)
log1p function defined in C language math.h.
sub log1pf : float ($x : float)
log1pf function defined in C language math.h.
sub log2 : double ($x : double)
log2 function defined in C language math.h.
sub log2f : float ($x : float)
log2f function defined in C language math.h.
sub logb : double ($x : double)
logb function defined in C language math.h.
sub logbf : float ($x : float)
logbf function defined in C language math.h.
sub logf : float ($x : float)
logf function defined in C language math.h.
sub lround : long ($x : double)
llround function defined in C language math.h. Note that call llround instead of lround in C level.
sub lroundf : long ($x : float)
llroundf function defined in C language math.h. Note that call llroundf instead of lroundf in C level.
sub modf : double ($x : double, $intpart : double&)
modf function defined in C language math.h.
sub modff : float ($x : float, $intpart : float&)
modff function defined in C language math.h.
sub NAN : double ()
NAN macro defined in C language math.h. This method return a double value.
sub nan : double ($str : string)
nan function defined in C language math.h.
String must be defined, otherwise a exception occurs.
sub NANF : float ()
NAN macro defined in C language math.h. This method return a float value.
sub nanf : float ($str : string)
nanf function defined in C language math.h.
sub nearbyint : double ($x : double)
nearbyint function defined in C language math.h.
sub nearbyintf : float ($x : float)
nearbyintf function defined in C language math.h.
sub nextafter : double ($x1 : double, $x2 : double)
nextafter function defined in C language math.h.
sub nextafterf : float ($x1 : float, $x2 : float)
nextafterf function defined in C language math.h.
sub nexttoward : double ($x1 : double, $x2 : double)
nexttoward function defined in C language math.h.
sub nexttowardf : float ($x1 : float, $x2 : double)
nexttowardf function defined in C language math.h.
sub PI : double ()
pi. This value is 0x1.921fb54442d18p+1.
sub pow : double ($x : double, $y : double)
pow function defined in C language math.h.
sub powf : float ($x : float, $y : float)
powf function defined in C language math.h.
sub remainder : double ($x1 : double, $x2 : double)
remainder function defined in C language math.h.
sub remainderf : float ($x1 : float, $x2 : float)
remainderf function defined in C language math.h.
sub remquo : double ($x1 : double, $x2 : double, $quo : int&)
remquo function defined in C language math.h.
sub remquof : float ($x1 : float, $x2 : float, $quo : int&)
remquof function defined in C language math.h.
sub round : double ($x : double)
round function defined in C language math.h.
sub roundf : float ($x : float)
roundf function defined in C language math.h.
sub scalbln : double ($x : double, $exp : long)
scalbln function defined in C language math.h.
sub scalblnf : float ($x : float, $exp : long)
scalblnf function defined in C language math.h.
sub scalbn : double ($x : double, $exp : int)
scalbn function defined in C language math.h.
sub scalbnf : float ($x : float, $exp : int)
scalbnf function defined in C language math.h.
sub signbit : int ($x : double)
signbit function defined in C language math.h.
sub signbitf : int ($x : float)
signbitf function defined in C language math.h.
sub sin : double ($x : double)
sin function defined in C language math.h.
sub sinf : float ($x : float)
sinf function defined in C language math.h.
sub sinh : double ($x : double)
sinh function defined in C language math.h.
sub sinhf : float ($x : float)
sinhf function defined in C language math.h.
sub sqrt : double ($x : double)
sqrt function defined in C language math.h.
sqrtf function defined in C language math.h.
sub tan : double ($x : double)
tan function defined in C language math.h.
sub tanf : float ($x : float)
tanf function defined in C language math.h.
sub tanh : double ($x : double)
tanh function defined in C language math.h.
sub tanhf : float ($x : float)
tanhf function defined in C language math.h.
sub tgamma : double ($x : double)
tgamma function defined in C language math.h.
sub tgammaf : float ($x : float)
tgammaf function defined in C language math.h.
sub trunc : double ($x : double)
trunc function defined in C language math.h.
sub truncf : float ($x : float)
truncf function defined in C language math.h.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Euler’s'. Assuming UTF-8
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.