Standard library / math

math.Erfc()

Complementary error function; useful in tails without subtracting Erf from one. Expected stdout: '1\n'.

Formal Syntax & Structure

go syntaxgo
func Erfc(x float64) float64

Parameters & Attributes

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

Return Value

float64

Complementary error function; useful in tails without subtracting Erf from one.

Working Example

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