Standard library / math

math.Erf()

Gaussian error function, used in probability calculations. Expected stdout: '0\n'.

Formal Syntax & Structure

go syntaxgo
func Erf(x float64) float64

Parameters & Attributes

NameTypeDescription
xfloat64First input operand (or sole input if unary).

Return Value

float64

Gaussian error function, used in probability calculations.

Working Example

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