Documentation moved.
This entry is now part of the unified function reference. Open the unified page →
Function
src/index.ts:745nerdamer.atan
nerdamer.atan(x: ExpressionInput): ExpressionComputes the arctangent (inverse tangent) of an expression. Returns exact symbolic values involving π for well-known inputs:
`0 → 0`,
`1/√3 → π/6`,
`1 → π/4`,
`√3 → π/3`. Uses the identity
`atan(-x) = -atan(x)`for negative arguments. At infinity:
`atan(+∞) = π/2`,
`atan(−∞) = −π/2`.
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The input expression. |
Returns
Expression — The arctangent of `x` in radians.
Examples
atan(0).text() // "0"
atan(1).text() // "1/4*pi"
atan('sqrt(3)').text() // "1/3*pi"
// Symbolic
atan('x').text() // "atan(x)"