Documentation

math.jn() function

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

Function type signature
(n: int, x: float) => float
For more information, see Function type signatures.

Parameters

n

(Required) Order number.

x

(Required) Value to operate on.

Examples

Return the order-n Bessel function of a value

import "math"

math.jn(n: 2, x: 1.23)// 0.16636938378681407


Use math.jn in map

import "sampledata"
import "math"

sampledata.float()
    |> map(fn: (r) => ({r with _value: math.jn(n: 4, x: r._value)}))

View example input and ouput


Was this page helpful?

Thank you for your feedback!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.