go Y1()
math.Y1()方法语法
func Y1(x float64) float64
go源码对Y1()方法的介绍:
Y1 returns the order-one Bessel function of the second kind.
Special cases are:
Y1(+Inf) = 0
Y1(0) = -Inf
Y1(x < 0) = NaN
Y1(NaN) = NaN
golang模块中math.Y1()方法,可用于返回参数x的1阶的第二类贝塞尔函数。除此之外,Y1(+Inf) = 0;Y1(0) = -Inf;Y1(x < 0) = NaN;Y1(NaN) = NaN。
math.Y1()方法实例代码
func main() {
var y1 float64 = math.Y1(5.2)
fmt.Println(y1)
}
运行go文件,得到输出:
0.07919034298208429