NAME
Math::Libm - Perl extension for the C math library, libm
SYNOPSIS
use Math::Libm ':all';print "e = ", M_E, "\n";print "pi/2 = ", M_PI_2, "\n";print "erf(1) = ", erf(1), "\n";print "hypot(3,4) = ", hypot(3,4), "\n";my $signgam = 0;my $y = lgamma_r(-0.5, $signgam);print "signgam=$signgam lgamma=$y\n";
DESCRIPTION
This module is a translation of the C math.h file. It exports the following selected constants and functions.
EXPORT
None by default.
Exportable constants
M_1_PIM_2_PIM_2_SQRTPIM_EM_LN10M_LN2M_LOG10EM_LOG2EM_PIM_PI_2M_PI_4M_SQRT1_2M_SQRT2
Exportable functions
double acos(double x)double acosh(double x)double asin(double x)double asinh(double x)double atan(double x)double atanh(double x)double cbrt(double x)double ceil(double x)double cosh(double x)double erf(double x)double erfc(double x)double expm1(double x)double floor(double x)double hypot(double x, double y)double j0(double x)double j1(double x)double jn(int n, double x)double lgamma_r(double x, int signgam)double log10(double x)double log1p(double x)double pow(double x, double y)double rint(double x)double sinh(double x)double tan(double x)double tanh(double x)double y0(double x)double y1(double x)double yn(int n, double x)
AUTHOR
Daniel S. Lewart, <[email protected]>
SEE ALSO
perlfunc, Math::Complex, POSIX.
BUGS
Only tested on AIX 4.2, FreeBSD 4.0, Linux 2.2.16, and Solaris 2.5.1. May need some more functions.