go math.Erfc()
Erfc()方法语法
func Erfc(x float64) float64
go源码对Erfc()方法的介绍:
Erfc returns the complementary error function of x.
Special cases are:
Erfc(+Inf) = 0
Erfc(-Inf) = 2
Erfc(NaN) = NaN
golang math.Erfc()方法,返回float64类型参数x的余误差函数。除此之外,Erfc(+Inf) = 0;Erfc(-Inf) = 2;Erfc(NaN) = NaN。
math.Erfc()方法实例代码
func main() {
erfc := math.Erfc(1.1)
fmt.Println(erfc)
}
运行go文件,得到输出:
0.11979493042591827