besselj
Bessel function of the first kind.
Syntax
[j,ierr] = besselj(alpha, x, opt)
Inputs
- alpha
- The function order.
- x
- The function argument.
- opt
- The scaling option.
Outputs
- j
- The Bessel function values.
- ierr
- The return status flag.
Examples
Unscaled example:
j = besselj(3,[10:12;13:15]*i)
j = [Matrix] 2 x 3
-1.07670e-13 - 1.75838e+03i -2.91339e-13 - 4.75793e+03i -7.85788e-13 - 1.28329e+04i
-2.11484e-12 - 3.45380e+04i -5.68362e-12 - 9.28206e+04i -1.52602e-11 - 2.49218e+05i
Scaled example:
j = besselj(3,[10:12;13:15]*i,1)
j = [Matrix] 2 x 3
-4.88820e-18 - 7.98304e-02i -4.86586e-18 - 7.94655e-02i -4.82805e-18 - 7.88480e-02i
-4.78024e-18 - 7.80672e-02i -4.72610e-18 - 7.71830e-02i -4.66814e-18 - 7.62365e-02i
Comments
If alpha and x have different dimensions, a singleton dimension in either variable is expanded to match the corresponding dimension length of the other variable.