AiryA(x)

The AiryA function returns the value of the Airy Ai (x) function:

\operatorname{Ai}(x) = \frac{1}{\pi} \sqrt{\frac{x}{3}} \, K_{1/3}\!\left(\frac{2}{3} x^{3/2}\right)\,,

where K() is the modified Bessel function of the second kind.

AiryAD(x)

The AiryAD function returns the value of the derivative of the Airy function.

AiryB(x)

The AiryB function returns the value of the Airy Bi (x) function:

\operatorname{Bi}(x) = \sqrt{\frac{x}{3}} \left[ I_{-1/3}\!\left(\frac{2}{3} x^{3/2}\right) + I_{1/3}\!\left(\frac{2}{3} x^{3/2}\right) \right]\,,

where I() is the modified Bessel function of the first kind (besseli).

AiryBD(x)

The AiryBD function returns the value of the derivative Bi' (x) of the AiryB function.

besseli(n, z)

The besseli function returns the modified Bessel function of the first kind, of order n and argument z. If z is real, a real value is returned. If z is real and negative, besseli returns NaN unless n is an integer.

For complex z a complex value is returned, and there are no restrictions on z except for possible overflow.

BesselJ(n, z)

The BesselJ function returns the Bessel function of the first kind, Jn (z), of order n and argument z. If z is real, a real value is returned. If z is real and negative, BesselJ returns NaN unless n is an integer. For complex z a complex value is returned, and there are no restrictions on z except for possible overflow.

BesselK(n, z)

The BesselK function returns the modified Bessel function of the second kind, Kn (z), of order n and argument z. If z is real, a real value is returned. If z is real and negative, BesselK returns NaN.

BesselY(n, z)

The BesselY function returns the Bessel function of the second kind, Yn (z), of order n and argument z. If z is real, a real value is returned. If z is real and negative, BesselY returns NaN.

Beta(a, b)

The beta function returns for real or complex arguments

B(a,b) = \frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)}, \qquad \operatorname{Re}(a),\, \operatorname{Re}(b) > 0

where Γ is the gamma function.

Betai(a, b, x)

The betai function returns the regularized incomplete beta function Ix (a, b),

I_x(a, b) = \frac{B_x(a, b)}{B(a, b)}

 B_x(a, b) = \int_0^x t^{a-1}(1-t)^{b-1} \,dt

where a, b > 0, and 0 <= x <= 1.

Binomial(n,k)

The binomial function returns the ratio:

 \frac{n!}{k!(n-k)!}

where both n and k are positive integers.

BinomialLn(n,k)

Returns the natural log of the binomial coefficient for n and k.

BinomialLn(n,k) = (\ln n! - \ln k!) - \ln((n-k)!

Chebyshev(n,x)

The chebyshev function returns the Chebyshev polynomial of the first kind and of degree n. The Chebyshev polynomials satisfy the recurrence relation:

\begin{align*} &\;\;T_{n+1}(x) = 2 x T_n(x) - T_{n-1}(x),\\  &with\\  &\;\;T_0(x) = 1\\ &\;\;T_1(x) = x\\ &\;\;T_2(x) = 2x_2 - 1. \end{align*}

The orthogonality of the polynomial is expressed by the integral: 

\int_{-1}^{1} \frac{T_n(x) T_m(x)}{\sqrt{1 - x^2}} \, dx = \begin{cases} 0 & m \neq n \\ \pi/2 & m = n \neq 0 \\ \pi & m = n = 0 \end{cases}

ChebyshevU(n,x)

The chebyshevU function returns the Chebyshev polynomial of the second kind, degree n and argument x. The Chebyshev polynomial of the second kind satisfies the recurrence relation

U(n+1,x) = 2x\,U(n,x) - U(n-1,x),

which is also the recurrence relation of the Chebyshev polynomials of the first kind. The first 10 polynomials of the second kind are:

\begin{aligned} U(0,x) &= 1 \\ U(1,x) &= 2x \\ U(2,x) &= 4x^2 - 1 \\ U(3,x) &= 8x^3 - 4x \\ U(4,x) &= 16x^4 - 12x^2 + 1 \\ U(5,x) &= 32x^5 - 32x^3 + 6x \\ U(6,x) &= 64x^6 - 80x^4 + 24x^2 - 1 \\ U(7,x) &= 128x^7 - 192x^5 + 80x^3 - 8x \\ U(8,x) &= 256x^8 - 448x^6 + 240x^4 - 40x^2 + 1 \\ U(9,x) &= 512x^9 - 1024x^7 + 672x^5 - 160x^3 + 10x \end{aligned}

Dawson(x)

The dawson function returns the value of the Dawson integral.

D(x) = \exp\left(-x^2\right) \int_0^x \exp\left(t^2\right) dt

Digamma(z)

The digamma function returns the digamma, or psi function, of z. This is the logarithmic derivative of the gamma function.

\Psi(z) = \frac{d}{dz} \ln\left[\Gamma(z)\right] = \frac{\Gamma'(z)}{\Gamma(z)}

In complex expressions, z is complex, and digamma(z) returns a complex value. Limited testing indicates that the accuracy is approximately 1 part in 1016, at least for moderately-sized values of z.

Ei(x)

The ei function returns the value of the exponential integral Ei (x):

\operatorname{Ei}(x) = \operatorname{P} \int_{-\infty}^{x} \frac{e^t}{t} \, dt, \qquad x > 0

where P denotes the principal value of the integral.

Erf(z)

The erf function returns the error function. For real input x the function is given by:

\operatorname{erf}(x) = \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} \, dt

In complex expressions the error function is defined by

\operatorname{erf}(z) = \frac{2z}{\sqrt{\pi}} \, {_1F_1}\!\left(\frac{1}{2}; \frac{3}{2}; -z^2\right)

where,

{_1F_1}\!\left(\frac{1}{2}; \frac{3}{2}; -z^2\right)

is the confluent hypergeometric function of the first kind HyperG1F1.

Erfc(z)

The erfc function returns the complementary error function of z.

\operatorname{erfc}(z) = 1 - \operatorname{erf}(z) = 1 - \frac{2z}{\sqrt{\pi}} \, {_1F_1}\!\left(\frac{1}{2}; \frac{3}{2}; -z^2\right)

where

{_1F_1}\!\left(\frac{1}{2}; \frac{3}{2}; -z^2\right)

is the confluent hypergeometric function of the first kind HyperG1F1.

expInt(n,x)

The expInt function returns the value of the exponential integral En (x)

E_n(x) = P \int_1^{\infty} \frac{e^{-xt}}{t^n} \, dt

where P is the principal value.

Factorial(n)

The Factorial function returns n!, where n is assumed to be a positive integer. Note that while factorial is an integer-valued function, a double-precision number has 53 bits for the mantissa. This means that n > 252 will be accurate to only about one part in about 2x1016. Values of n greater than 170 result in overflow and return the non-number Inf.

FresnelCos(x)

The FresnelCos function returns the Fresnel cosine function C(x).

C(x) = \int_0^x \cos\!\left(\frac{\pi}{2} t^2\right) dt

FresnelSin(x)

The FresnelSin function returns the Fresnel sine function S(x).

S(x) = \int_0^x \sin\!\left(\frac{\pi}{2} t^2\right) dt

Gamma(z)

The gamma function returns the value of the gamma function of z. If z is complex, it returns a complex result. Note that the return value for z close to negative integers is NaN, not +/-Inf.

\Gamma(z) = \int_0^{\infty} t^{z-1} e^{-t} \, dt, \qquad \operatorname{Re}(z) > 0

GammaInc(a,x)

The gammaInc function returns the value of the incomplete gamma function, defined by the integral

\Gamma(a,x) = \int_x^{\infty} e^{-t} t^{a-1} \, dt

Note that gammaInc(a, x) = gamma(a) - gammaInc(a, x, 0). Defined for x > 0, a >= 0.

GammLn(z)

The gammLn function returns the natural log of the gamma function of z, where z > 0. If z is complex, it returns a complex result.

Gammp(a,x)

The gammp function returns the regularized incomplete gamma function P(a,x), where a > 0, x >= 0. It is defined by

gammp(a,x) = gammaInc(a,x)/gamma(a).

Gammq(a,x)

The gammq function returns the regularized incomplete gamma function 1-P(a,x), where a > 0, x >= 0. It is defined by

gammaInc(a,x)/gamma(a).

Hermite(n,x)

The hermite function returns the Hermite polynomial of order n

H_n(x) = (-1)^n \exp\left(x^2\right) \frac{d^n}{dx^n} \exp\left(-x^2\right)\,.

The first few polynomials are:

\begin{aligned} H_0(x) &= 1 \\ H_1(x) &= 2x \\ H_2(x) &= 4x^2 - 2 \\ H_3(x) &= 8x^3 - 12x \end{aligned}

HermiteGauss(n,x)

The HermiteGauss function returns the normalized Hermite polynomial of order n :

\int_{-\infty}^{\infty} H_n(x) H_m(x) \, dx = \delta_{nm}\,.

Here the normalization was chosen such that

\int_{-\infty}^{\infty} H_n(x) H_m(x) \, dx = \delta_{nm}\,.

HyperG0F1(b,z)

The hyperG0F1 function returns the confluent hypergeometric function

{_0F_1}(b;z) = \sum_{i=0}^{\infty} \frac{z^i}{i!\, (b)_i} \,,

where (b)i is the Pochhammer symbol:


(b)_i = b(b+1)\cdots(b+i-1) \,.

HyperG1F1(a,b,z)

The hyperG1F1 function returns the confluent hypergeometric function

{_1F_1}(a,b,z) = \sum_{n=0}^{\infty} \frac{(a)_n\, z^n}{(b)_n\, n!} \,,

where (a)n and (b)n are Pochhammer symbols

\begin{aligned} (a)_n &= a(a+1)\cdots(a+n-1) \,, \\ (b)_n &= b(b+1)\cdots(b+n-1) \,. \end{aligned}

HyperG2F1(a,b,c,z)

The hyperG2F1 function returns the confluent hypergeometric function

{_2F_1}(a,b,c,z) = \sum_{n=0}^{\infty} \frac{(a)_n (b)_n\, z^n}{(c)_n\, n!} \,,

where (a)n , (b)n , and (c)n are Pochhammer symbols, defined by
 

(x)_n = x(x+1)\cdots(x+n-1)\,.

HyperGPFQ(a,b,z)

The hyperGPFQ function returns the generalized hypergeometric function

{_pF_q}\!\left(\{a_1,\ldots a_p\}, \{b_1,\ldots b_q\}, z\right) = \sum_{n=0}^{\infty} \frac{(a_1)_n (a_2)_n \cdots (a_p)_n\, z^n}{(b_1)_n (b_2)_n \cdots (b_q)_n\, n!} \,,

where (a)n and (b)n are Pochhammer symbols

\begin{aligned} (a)_n &= a(a+1)\cdots(a+n-1) \,, \\ (b)_n &= b(b+1)\cdots(b+n-1) \,. \end{aligned}

InverseERF(x)

The inverseErf function returns the inverse of the error function

InverseERFC

The inverseErfc function returns the inverse of the complementary error function.

Laguerre(n,x)

The laguerre function returns the Laguerre polynomial of degree n (positive integer) and argument x. The polynomials satisfy the recurrence relation:

(n+1)L_{n+1}(x) = (2n+1-x)L_n(x) - n L_{n-1}(x) \,.

with the initial conditions

\begin{aligned} L_0(x) &= 1 \,, \\ L_1(x) &= 1 - x \,. \end{aligned}

laguerreA (n, k, x)

The LaguerreA function returns the associated Laguerre polynomial of degree n (positive integer), index k (nonnegative integer) and argument x. The associated Laguerre polynomials are defined by

L_n^k(x) = (-1)^k \frac{d^k}{dx^k}\left[L_{n+k}(x)\right] \,,

where Ln+k (x) is the Laguerre polynomial.

laguerreGauss (p, m, r)

The LaguerreGauss function returns the normalized product of the associated Laguerre polynomials and a Gaussian. This function is typically encountered in solutions to physical problems where it represents the radial solution with an additional factor exp(imφ) which is not included in this case. The laguerreGauss is given by

U_{pm}(r) = \sqrt{\frac{2\, p!}{\pi(m+p)!}}\, \left(r\sqrt{2}\right)^m L_p^m\!\left(2r^2\right) \exp\left(-r^2\right) \,.

LegendreA(n, m, x)

The legendreA function returns the associated Legendre polynomial

P_n^m(x), \quad 0 \le m \le n \text{ and } |x| \le 1 \,.

where n and m are integers.

SphericalBessJ(n, x)

The sphericalBessJ function returns the spherical Bessel function of the first kind and order n.

j_n(x) = \sqrt{\frac{\pi}{2x}}\, J_{n+1/2}(x) \,.

The first three functions are

\begin{aligned} j_0(x) &= \frac{\sin(x)}{x} \,, \\ j_1(x) &= \frac{\sin(x)}{x^2} - \frac{\cos(x)}{x} \,, \\ j_2(x) &= \left(\frac{3}{x^3} - \frac{1}{x}\right)\sin(x) - \frac{3}{x^2}\cos(x) \,. \end{aligned}

SphericalBessJD(n, x)

The sphericalBessJD function returns the derivative of the spherical Bessel function of the first kind and order n.

SphericalBessY(n, x)

The sphericalBessY function returns the spherical Bessel function of the second kind and order n.

y_n(x) = \sqrt{\frac{\pi}{2x}}\, Y_{n+1/2}(x) \,.

The first few orders are given by

\begin{aligned} y_0(x) &= -\frac{\cos(x)}{x} \,, \\ y_1(x) &= -\frac{\cos(x)}{x^2} - \frac{\sin(x)}{x} \,, \\ y_2(x) &= \left(\frac{1}{x} - \frac{3}{x^3}\right)\cos(x) - \frac{3}{x^2}\sin(x) \,. \end{aligned}

SphericalBessYD(n, x)

The sphericalBessYD function returns the derivative of the spherical Bessel function of the second kind and order n.

SphericalHarmonics(L, M, θ, φ)

The sphericalHarmonics function returns the complex-valued spherical harmonics

Y_L^M(\theta,\phi) = (-1)^M \sqrt{\frac{2L+1}{4\pi}\frac{(L-M)!}{(L+M)!}}\, P_L^M\!\left(\cos(\theta)\right) e^{iM\phi} \,,

where PLM(cos(θ)) is the associated Legendre function.

ZernikeR(n, m, r)

The ZernikeR function returns the Zernike radial polynomials of degree n that contains no power of r that is less than m.

Here m is even or odd according to whether n is even or odd, and r is in the range [0,1].

Note that the full circle polynomials are complex. For any angle t (theta), they are given by:

\operatorname{ZernikeR}(n, m, r)\, e^{imt}

 

Forum

Support

Gallery

Igor Pro 10

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More