_y0(),_y1(),_yn(),_j0(),_j1(),_jn Functions

Purpose

Compute the Bessel-function

Syntax

Double = _y0(x As Double)

Double = _y1(x As Double)

Double = _yn(n As Int, x As Double)

Double = _j0(x As Double)

Double = _j1(x As Double)

Double = _jn(n As Int, x As Double)

Description

The Bessel functions are commonly used in the mathematics of electromagnetic wave theory.

The _y0, _y1, and _yn routines return Bessel functions of the second kind: orders 0, 1, and n, respectively.

The _j0, _j1, and _jn routines return Bessel functions of the first kind: orders 0, 1, and n, respectively.

Example

Print _y0(0.2) // Same as _yn(0, 0.2)

Print _y1(0.2) // Same as _yn(1, 0.2)

Print _yn(2, 0.2)

// .. and so on

Print _j0(0.5) // Same as _jn(0, 0.5)

Print _j1(0.5) // Same as _jn(1, 0.5)

Print _jn(2, 0.5)

// .. and so on

See Also

{Created by Sjouke Hamstra; Last updated: 23/09/2014 by James Gaite}