math.yn() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.65 is the most recent stable version of Flux.

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

Output data type: Float

import "math"

math.yn(n: 3, x: 3.14)

// Returns -0.4866506930365083



The order number used in the operation.

Data type: Integer


The value used in the operation.

Data type: Float

Special cases

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