__bessel__
- :
[J, ierr] =besselj(alpha, x, opt)¶ - :
[Y, ierr] =bessely(alpha, x, opt)¶ - :
[I, ierr] =besseli(alpha, x, opt)¶ - :
[K, ierr] =besselk(alpha, x, opt)¶ - :
[H, ierr] =besselh(alpha, k, x, opt)¶ Evaluate members of the Bessel and Hankel function families.
Every callable name in this family starts with
"bessel":besseljFirst-kind Bessel function. Supplying opt scales the result by
exp (-abs (imag (x))).besselySecond-kind Bessel function. Supplying opt scales the result by
exp (-abs (imag (x))).besseliFirst-kind modified Bessel function. Supplying opt scales the result by
exp (-abs (real (x))).besselkSecond-kind modified Bessel function. Supplying opt scales the result by
exp (x).besselhHankel function of the first (k = 1) or second (k = 2) kind. Supplying opt scales the result by
exp (-I*x)when k = 1, orexp (I*x)when k = 2.
Output sizing follows the usual broadcasting rules: a scalar alpha yields a result sized like x; a scalar x yields a result sized like alpha; a row-vector alpha paired with a column-vector x yields a
length (x)-by-length (alpha)matrix; otherwise alpha and x must already conform and the result matches their shape.alpha, the function order, must be real; the evaluation points x may be complex.
The optional ierr output reports a per-element status code, sized to match the result:
- Success.
- Invalid input;
NaNreturned. - Overflow;
Infreturned. - Argument-reduction loss of significance leaves under half the machine precision intact.
- Argument-reduction loss of significance; the result may be imprecise.
- Failure: the algorithm’s termination condition was never met, so no
result was computed;
NaNreturned.