Math::Cephes

Math::Cephes is a Perl interface to the cephes math library.
Download

Math::Cephes Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Randy Kobes
  • Publisher web site:
  • http://search.cpan.org/~rkobes/

Math::Cephes Tags


Math::Cephes Description

Math::Cephes is a Perl interface to the cephes math library. Math::Cephes is a Perl interface to the cephes math library.SYNOPSIS use Math::Cephes qw(:all); This module provides an interface to over 150 functions of the cephes math library of Stephen Moshier. No functions are exported by default, but rather must be imported explicitly, as in use Math::Cephes qw(sin cos); There are a number of export tags defined which allow importing groups of functions:use Math::Cephes qw(:constants); imports the variables $PI : 3.14159265358979323846 # pi $PIO2 : 1.57079632679489661923 # pi/2 $PIO4 : 0.785398163397448309616 # pi/4 $SQRT2 : 1.41421356237309504880 # sqrt(2) $SQRTH : 0.707106781186547524401 # sqrt(2)/2 $LOG2E : 1.4426950408889634073599 # 1/log(2) $SQ2OPI : 0.79788456080286535587989 # sqrt( 2/pi ) $LOGE2 : 0.693147180559945309417 # log(2) $LOGSQ2 : 0.346573590279972654709 # log(2)/2 $THPIO4 : 2.35619449019234492885 # 3*pi/4 $TWOOPI : 0.636619772367581343075535 # 2/pi As well, there are 4 machine-specific numbers available: $MACHEP : machine roundoff error $MAXLOG : maximum log on the machine $MINLOG : minimum log on the machine $MAXNUM : largest number representeduse Math::Cephes qw(:trigs); imports acos: Inverse circular cosine asin: Inverse circular sine atan: Inverse circular tangent (arctangent) atan2: Quadrant correct inverse circular tangent cos: Circular cosine cosdg: Circular cosine of angle in degrees cot: Circular cotangent cotdg: Circular cotangent of argument in degrees hypot: hypotenuse associated with the sides of a right triangle radian: Degrees, minutes, seconds to radians sin: Circular sine sindg: Circular sine of angle in degrees tan: Circular tangent tandg: Circular tangent of argument in degrees cosm1: Relative error approximations for function arguments near unityuse Math::Cephes qw(:hypers); imports acosh: Inverse hyperbolic cosine asinh: Inverse hyperbolic sine atanh: Inverse hyperbolic tangent cosh: Hyperbolic cosine sinh: Hyperbolic sine tanh: Hyperbolic tangentuse Math::Cephes qw(:explog); imports exp: Exponential function expxx: exp(x*x) exp10: Base 10 exponential function (Common antilogarithm) exp2: Base 2 exponential function log: Natural logarithm log10: Common logarithm log2: Base 2 logarithm log1p,expm1: Relative error approximations for function arguments near unity.use Math::Cephes qw(:cmplx); imports new_cmplx: create a new complex number object cabs: Complex absolute value cacos: Complex circular arc cosine cacosh: Complex inverse hyperbolic cosine casin: Complex circular arc sine casinh: Complex inverse hyperbolic sine catan: Complex circular arc tangent catanh: Complex inverse hyperbolic tangent ccos: Complex circular cosine ccosh: Complex hyperbolic cosine ccot: Complex circular cotangent cexp: Complex exponential function clog: Complex natural logarithm cadd: add two complex numbers csub: subtract two complex numbers cmul: multiply two complex numbers cdiv: divide two complex numbers cmov: copy one complex number to another cneg: negate a complex number cpow: Complex power function csin: Complex circular sine csinh: Complex hyperbolic sine csqrt: Complex square root ctan: Complex circular tangent ctanh: Complex hyperbolic tangentuse Math::Cephes qw(:utils); imports cbrt: Cube root ceil: ceil drand: Pseudorandom number generator fabs: Absolute value fac: Factorial function floor: floor frexp: frexp ldexp: multiplies x by 2**n. lrand: Pseudorandom number generator lsqrt: Integer square root pow: Power function powi: Real raised to integer power round: Round double to nearest or even integer valued double sqrt: Square rootuse Math::Cephes qw(:bessels); imports i0: Modified Bessel function of order zero i0e: Modified Bessel function of order zero, exponentially scaled i1: Modified Bessel function of order one i1e: Modified Bessel function of order one, exponentially scaled iv: Modified Bessel function of noninteger order j0: Bessel function of order zero j1: Bessel function of order one jn: Bessel function of integer order jv: Bessel function of noninteger order k0: Modified Bessel function, third kind, order zero k0e: Modified Bessel function, third kind, order zero, exponentially scaled k1: Modified Bessel function, third kind, order one k1e: Modified Bessel function, third kind, order one, exponentially scaled kn: Modified Bessel function, third kind, integer order y0: Bessel function of the second kind, order zero y1: Bessel function of second kind of order one yn: Bessel function of second kind of integer order yv: Bessel function Yv with noninteger vuse Math::Cephes qw(:dists); imports bdtr: Binomial distribution bdtrc: Complemented binomial distribution bdtri: Inverse binomial distribution btdtr: Beta distribution chdtr: Chi-square distribution chdtrc: Complemented Chi-square distribution chdtri: Inverse of complemented Chi-square distribution fdtr: F distribution fdtrc: Complemented F distribution fdtri: Inverse of complemented F distribution gdtr: Gamma distribution function gdtrc: Complemented gamma distribution function nbdtr: Negative binomial distribution nbdtrc: Complemented negative binomial distribution nbdtri: Functional inverse of negative binomial distribution ndtr: Normal distribution function ndtri: Inverse of Normal distribution function pdtr: Poisson distribution pdtrc: Complemented poisson distribution pdtri: Inverse Poisson distribution stdtr: Student's t distribution stdtri: Functional inverse of Student's t distributionuse Math::Cephes qw(:gammas); imports fac: Factorial function gamma: Gamma function igam: Incomplete gamma integral igamc: Complemented incomplete gamma integral igami: Inverse of complemented imcomplete gamma integral psi: Psi (digamma) function rgamma: Reciprocal gamma functionuse Math::Cephes qw(:betas); imports beta: Beta function incbet: Incomplete beta integral incbi: Inverse of imcomplete beta integral lbeta: Natural logarithm of |beta|use Math::Cephes qw(:elliptics); imports ellie: Incomplete elliptic integral of the second kind ellik: Incomplete elliptic integral of the first kind ellpe: Complete elliptic integral of the second kind ellpj: Jacobian Elliptic Functions ellpk: Complete elliptic integral of the first kinduse Math::Cephes qw(:hypergeometrics); imports hyp2f0: Gauss hypergeometric function F hyp2f1: Gauss hypergeometric function F hyperg: Confluent hypergeometric function onef2: Hypergeometric function 1F2 threef0: Hypergeometric function 3F0use Math::Cephes qw(:misc); imports airy: Airy function bernum: Bernoulli numbers dawsn: Dawson's Integral ei: Exponential integral erf: Error function erfc: Complementary error function expn: Exponential integral En fresnl: Fresnel integral plancki: Integral of Planck's black body radiation formula polylog: Polylogarithm function shichi: Hyperbolic sine and cosine integrals sici: Sine and cosine integrals simpson: Simpson's rule to find an integral spence: Dilogarithm struve: Struve function vecang: angle between two vectors zeta: Riemann zeta function of two arguments zetac: Riemann zeta functionuse Math::Cephes qw(:fract); imports new_fract: create a new fraction object radd: add two fractions rmul: multiply two fractions rsub: subtracttwo fractions rdiv: divide two fractions euclid: finds the greatest common divisor Requirements: · Perl


Math::Cephes Related Software