Math functions

factorial(n): the factorial of an integer n.

choose(m, n): returns the number

gcd(x, y): the greatest common divisor of x and y

lcm(x, y): the least common multiple of x and y

splinefit(): returns a cubic spline function (see the following function cspline).

splinefit(x, y): free cubic spline

splinefit(x, y, yp0, yp1): clamped boundary condition cubic spline

splinefit(x, y, type): cubic spline; type may be "cyclic", "periodic" (same as "cyclic"), or "not-a-knot".

cspline(x): has two parameters xnodes and coeff. Returns the evaluation of cubic spline evaluated at x. This function is the return value of splinefit.

int(f, I): the numerical integral of function f over interval I

dsolve(ode, I, y0): the numerical solution of the initial value problem over the interval I defined by the ordinary differential equation ode with initial value y0 at the start of I



oz 2009-12-22