The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

CLASS METHODS

pi

  sub pi : double()

INFINITYF

  sub INFINITYF : float ()

NANF

  sub NANF : float ()

isinff

  sub isinff : int($x : float)

isfinitef

  sub isfinitef : int($x : float)

isnanf

  sub isnanf : int ($x : float)

INFINITY

  sub INFINITY : double ()

NAN

  sub NAN : double ()

isinf

  sub isinf : int ($x : double)

isfinite

  sub isfinite : int ($x : double)

isnan

  sub isnan : int ($x : double)

acos

  sub acos : double ($x : double)

asin

  sub asin : double($x : double)

atan

  sub atan : double ($x : double)

atan2

  sub atan2 : double ($y : double, $x : double)

cos

  sub cos : double ($x : double)

sin

  sub sin : double ($x : double)

tan

  sub tan : double ($x : double)

acosh

  sub acosh : double ($x : double)

asinh

  sub asinh : double ($x : double)

atanh

  sub atanh : double ($x : double)

cosh

  sub cosh : double ($x : double)

sinh

  sub sinh : double ($x : double)

tanh

  sub tanh : double ($x : double)

exp

  sub exp : double ($x : double)

exp2

  sub exp2 : double ($x : double)

expm1

  sub expm1 : double ($x : double)

log

  sub log : double ($x : double)

log10

  sub log10 : double ($x : double)

log1p

  sub log1p : double ($x : double)

cbrt

  sub cbrt : double ($x : double)

fabs

  sub fabs : double ($x : double)

hypot

  sub hypot : double ($x : double, $y : double)

pow

  sub pow : double ($x : double, $y : double)

sqrt

  sub sqrt : double ($x : double)

erf

  sub erf : double ($x : double)

erfc

  sub erfc : double ($x : double)

lgamma

  sub lgamma : double ($x : double)

tgamma

  sub tgamma : double ($x : double)

ceil

  sub ceil : double ($x : double)

floor

  sub floor : double ($x : double)

nearbyint

  sub nearbyint : double ($x : double)

round

  sub round : double ($x : double)

remainder

  sub remainder : double ($x1 : double, $x2 : double)

signbitf

  sub signbitf : int ($num : float)

signbit

  sub signbit : int ($num : double)