Standard library / math

math.Atan()

Inverse tangent in radians, between -pi/2 and pi/2 for finite inputs. Expected stdout: '0\n'.

Formal Syntax & Structure

go syntaxgo
func Atan(x float64) float64

Parameters & Attributes

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

Return Value

float64

Inverse tangent in radians, between -pi/2 and pi/2 for finite inputs.

Working Example

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