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