Standard library / math

math.Jn()

Bessel function of first kind, integer order n. Expected stdout: '0\n'.

Formal Syntax & Structure

go syntaxgo
func Jn(n int, x float64) float64

Parameters & Attributes

NameTypeDescription
nintInteger count, exponent or order as specified.
xfloat64First input operand (or sole input if unary).

Return Value

float64

Bessel function of first kind, integer order n.

Working Example

Example Snippetgo
package main
import (  "fmt"  "math")
func main() {  fmt.Println(math.Jn(2, 0))}
Go Reference