On this page
  1. math.atan
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

math.atan

Prev: math.asinh | Up: math | Next: math.atan2
Rel: math.acos, math.acosh, math.asin, math.asinh
Ref: docs.python.org — math.atan
Tags: #public #python3 #stdlib #math


Import

import math
from math import atan

Signature & Overview

math.atan(x, /)

Return the arc tangent (measured in radians) of x.

Usage

import math

assert math.isclose(math.atan(1.0), math.pi / 4)

Gotchas

REPL Inspect

from math import atan
help(atan)

Linked from

Related notes