Member of the advanced class.
hv = besselh(v, x)
hv = besselh(v, kind, x)
hv = besselh(v, kind, x, 1)
[hv, error] = besselh(v, x)
[hv, error] = besselh(v, kind, x)
[hv, error] = besselh(v, kind, x, 1)
Computes the Bessel function of the third kind, or the Hankel function, of a given order. besselh(v, x) is equivalent to besselh(v, 1, x).
| Name | Description | ||||
| v | Specifies the order of the Hankel function. v is a real, double-precision, floating-point, positive scalar, vector, or matrix. | ||||
| x | Specifies the value for which you want to compute the Hankel function. x is a real or complex, double-precision, floating-point scalar, vector, or matrix. | ||||
| kind | Specifies the type of the Hankel function. kind is an integer that accepts the following values.
|
||||
| 1 | Scales the computation. besselh(v, 1, x, 1) scales besselh(v, 1, x) by exp(-i*x). besselh(v, 2, x, 1) scales besselh(v, 2, x) by exp(i*x). |
| Name | Description | ||||||||||||
| hv | Returns the Hankel function. hv is a real or complex, double-precision, floating-point scalar, vector, or matrix. | ||||||||||||
| error | Returns error information about the evaluation of the Hankel function. error is an integer that can return the following values.
|
LabVIEW computes the Hankel functions, which are defined by:
besselh(v, 1, x) = besselj(v, x)+i*bessely(v, x)
besselh(v, 2, x) = besselj(v, x)-i*bessely(v, x)
If x is a scalar, LabVIEW sets x to a vector of the same size as v whose elements all equal the value you specified for x. If y is a scalar, LabVIEW sets y to a vector of the same size as v whose elements all equal the value you specified for y. If x and v are vectors of the same orientation, LabVIEW returns a vector of Hankel functions for corresponding input values. For example, if x = [1, 2] and v = [3, 4], LabVIEW returns [besselh(1, 3), besselh(2, 4)]. If x and v are vectors of opposite orientation, LabVIEW returns a matrix of Hankel functions for each combination of input values. For example, if x = [1, 2] and v = [3; 4], LabVIEW returns [besselh(1, 3), besselh(1, 4); besselh(2, 3), besselh(2, 4)].
X = [0.1:0.099:2];
HV = besselh(2, 1, X);
plot(X, HV)