Learn and Learn

Learn And Learn - great place for tutorials, references and how-to

GoLang – Find Inverse of Tan – Atan() Function – Examples & Explanation

Atan() function is used to find the inverse of a tan in Go language. The inverse of a tan is also known as arctan. Atan() function is a part of math library of Go programming language.

Syntax of Atan() in Go Language

The syntax of Atan() function is:

Note: float64 is a data type in go language which has IEEE-754 64-bit floating-point numbers.
Special cases are:
Atan(±0) = ±0
Atan(±Inf) = ±Pi/2


Parameters of Atan() Function in Go Language

x Any Valid GoLang number ( positive or negative ). This parameter is required.
Note: if the x parameter is not a number, Atan() function will return an error.


Atan() Return Value

Atan() function returns a floating point number ( a value of the inverse of tan in radians ).


GoLang Atan() Function Example 1:



GoLang Atan() Function Example 2:



GoLang Atan() Function Example 3:



LearnAndLearn.com © 2018 - All rights reserved