Math Functions

math.atan()

Return inverse tangent in radians between minus pi/2 and pi/2 for finite inputs.

Formal Syntax & Structure

python syntaxpython
math.atan(x, /)

Parameters & Attributes

NameTypeDescription
xreal numberInput real value.

Return Value

float

Floating-point result; finite precision and domain restrictions apply.

Working Example

Example Snippetpython
import mathprint(math.atan(0))
Python Reference