math.jn() function

The math.jn() function returns the order-n Bessel function of the first kind.

*Output data type: Float*

  1. import "math"
  2. math.jn(n: 2, x: 1.23)
  3. // Returns 0.16636938378681407

Parameters

n

The order number.

*Data type: Integer*

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.jn(n:n, x: ±Inf) // Returns 0
  2. math.jn(n:n, x: NaN) // Returns NaN