Compute Bessel or Hankel functions of various kinds:
besselj- Bessel functions of the first kind.
bessely- Bessel functions of the second kind.
besseli- Modified Bessel functions of the first kind.
besselk- Modified Bessel functions of the second kind.
besselh- Compute Hankel functions of the first (k = 1) or second (k = 2) kind.
If the argument opt is supplied, the result is scaled by the
exp (-I*x)for k = 1 orexp (I*x)for k = 2.If alpha is a scalar, the result is the same size as x. If x is a scalar, the result is the same size as alpha. If alpha is a row vector and x is a column vector, the result is a matrix with
length (x)rows andlength (alpha)columns. Otherwise, alpha and x must conform and the result will be the same size.The value of alpha must be real. The value of x may be complex.
If requested, ierr contains the following status information and is the same size as the result.
- Normal return.
- Input error, return
NaN.- Overflow, return
Inf.- Loss of significance by argument reduction results in less than half of machine accuracy.
- Complete loss of significance by argument reduction, return
NaN.- Error—no computation, algorithm termination condition not met, return
NaN.