PDL::Math - extended mathematical operations and special functions |

- NAME
- SYNOPSIS
- DESCRIPTION
- FUNCTIONS
- acos
- asin
- atan
- cosh
- sinh
- tan
- tanh
- ceil
- floor
- rint
- pow
- acosh
- asinh
- atanh
- erf
- erfc
- bessj0
- bessj1
- bessy0
- bessy1
- bessjn
- bessyn
- lgamma
- badmask
- isfinite
- erfi
- ndtri
- polyroots
- BUGS
- AUTHOR

PDL::Math - extended mathematical operations and special functions

use PDL::Math;

use PDL::Graphics::TriD; imag3d [SURF2D,bessj0(rvals(zeroes(50,50))/2)];

This module extends PDL with more advanced mathematical functions than provided by standard Perl.

All the functions have one input pdl, and one output, unless otherwise stated.

Many of the functions are linked from the system maths library or the Cephes maths library (determined when PDL is compiled); a few are implemented entirely in PDL.

Signature: (a(); [o]b())

The usual trigonometric function. Works inplace.

Signature: (a(); [o]b())

The usual trigonometric function. Works inplace.

Signature: (a(); [o]b())

The usual trigonometric function. Works inplace.

Signature: (a(); [o]b())

The standard hyperbolic function. Works inplace.

Signature: (a(); [o]b())

The standard hyperbolic function. Works inplace.

Signature: (a(); [o]b())

The usual trigonometric function. Works inplace.

Signature: (a(); [o]b())

The standard hyperbolic function. Works inplace.

Signature: (a(); [o]b())

Round to integral values in floating-point format. Works inplace.

Signature: (a(); [o]b())

Round to integral values in floating-point format. Works inplace.

Signature: (a(); [o]b())

Round to integral values in floating-point format. Works inplace.

Signature: (a(); b(); [o]c())

Synonym for `**'. Works inplace.

Signature: (a(); [o]b())

The standard hyperbolic function. Works inplace.

Signature: (a(); [o]b())

The standard hyperbolic function. Works inplace.

Signature: (a(); [o]b())

The standard hyperbolic function. Works inplace.

Signature: (a(); [o]b())

The error function. Works inplace.

Signature: (a(); [o]b())

The complement of the error function. Works inplace.

Signature: (a(); [o]b())

The standard Bessel function. Works inplace.

Signature: (a(); [o]b())

The standard Bessel function. Works inplace.

Signature: (a(); [o]b())

The standard Bessel function. Works inplace.

Signature: (a(); [o]b())

The standard Bessel function. Works inplace.

Signature: (a(); int n(); [o]b())

The standard Bessel function. This has a second integer argument which gives the order of the function required. Works inplace.

Signature: (a(); int n(); [o]b())

The standard Bessel function. This has a second integer argument which gives the order of the function required. Works inplace.

Signature: (a(); [o]b(); int[o]s())

log gamma function

This returns 2 piddles -- the first set gives the `log(gamma)`

values,
while the second set, of integer values, gives the sign of the gamma
function. This is useful for determining factorials, amongst other
things.

Signature: (a(); b(); [o]c())

Clears all `infs`

and `nans`

in `$a`

to the corresponding value in `$b`

.

badmask can be run with `$a`

inplace:

badmask($a->inplace,0); $a->inplace->badmask(0);

Signature: (a(); int [o]mask())

Sets `$mask`

true if `$a`

is not a `NaN`

or `inf`

(either positive or negative). Works inplace.

Signature: (a(); [o]b())

The inverse of the error function. Works inplace.

Signature: (a(); [o]b())

The value for which the area under the Gaussian probability density function (integrated from minus infinity) is equal to the argument (cf erfi). Works inplace.

Signature: (cr(n); ci(n); [o]rr(m); [o]ri(m))

Complex roots of a complex polynomial, given coefficients in order of decreasing powers.

($rr, $ri) = polyroots($cr, $ci);

Hasn't been tested on all platforms to ensure Cephes versions are picked up automatically and used correctly.

Copyright (C) R.J.R. Williams 1997 (rjrw@ast.leeds.ac.uk), Karl Glazebrook (kgb@aaoepp.aao.gov.au) and Tuomas J. Lukka (Tuomas.Lukka@helsinki.fi) Portions (C) Craig DeForest 2002 (deforest@boulder.swri.edu)

All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the PDL copyright notice should be included in the file.

PDL::Math - extended mathematical operations and special functions |