Member of the advanced class.
jv = besselj(v, x)
jv = besselj(v, x, 1)
[jv, error] = besselj(v, x)
[jv, error] = besselj(v, x, 1)
Computes the Bessel function of the first kind of a given order.
| Name | Description |
| v | Specifies the order of the Bessel 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 Bessel function. x is a real or complex, double-precision, floating-point scalar, vector, or matrix. |
| 1 | Scales the computation. besselj(v, x, 1) scales besselj(v, x) by exp(-abs(imag(x))). |
| Name | Description | ||||||||||||
| jv | Returns the Bessel function of the first kind. jv is a real or complex, double-precision, floating-point scalar, vector, or matrix. | ||||||||||||
| error | Returns error information about the evaluation of the Bessel function. error is an integer that can return the following values.
|
besselj(v, x) solves the following equation: x2*w''+x*w'+(x2-v2)*w = 0.
The following equation is a well-known representation for besselj(v, x): besselj(v, x) = ((1/2)*x)v*sum((-z2/4)k/(k!*gamma(v+k+1)), k, 0, inf).
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 Bessel functions for corresponding input values. For example, if x = [1, 2] and v = [3, 4], LabVIEW returns [besselj(1, 3), besselj(2, 4)]. If x and v are vectors of opposite orientation, LabVIEW returns a matrix of Bessel functions for each combination of input values. For example, if x = [1, 2] and v = [3; 4], LabVIEW returns [besselj(1, 3), besselj(1, 4); besselj(2, 3), besselj(2, 4)].
X = [0:0.01:2];
JV = besselj(2, X);
plot(X, JV)