math.yn() function

The math.yn() function returns the order-n Bessel function of the second kind.

*Output data type: Float*

  1. import "math"
  2. math.yn(n: 3, x: 3.14)
  3. // Returns -0.4866506930335083

Parameters

n

The order number used in the operation.

*Data type: Integer*

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.yn(n:n, x: +Inf) // Returns 0
  2. math.yn(n: 0, x: 0) // Returns -Inf
  3. math.yn(n: <0, x: 0) // Returns +Inf if n is odd, -Inf if n is even
  4. math.yn(n:n, x: <0) // Returns NaN
  5. math.yn(n:n, x:NaN) // Returns NaN