Standard library / math

math.Yn()

Bessel function of second kind, integer order; negative real input yields NaN. Expected stdout: '-Inf\n'.

Formal Syntax & Structure

go syntaxgo
func Yn(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 second kind, integer order; negative real input yields NaN.

Working Example

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