Formualizer Docs

ATAN

Returns the angle in radians whose tangent is the input value.

ATAN is useful for recovering a slope angle from a ratio.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=ATAN(number)

Arguments

ArgumentTypeRequiredDefault
numbernumberRequired—

How it works

Inverts tangent on the open interval from −π/2 to π/2. Every finite real input has an angle in that interval.

Remarks

  • Domain: accepts any real number.
  • Radians: output is in the range (-PI()/2, PI()/2).

Error cases

  • Errors: no function-specific domain errors are produced.

Examples

Convert a slope of one half to its principal angle.

Formula =ATAN(0.5)

Expected result 0.463647609000806

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A slope of negative one half gives an angle below the horizontal.

Formula =ATAN(-0.5)

Expected result -0.463647609000806

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Zero slope gives a zero angle.

Formula =ATAN(0)

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The text “invalid” cannot be used as the input to the inverse tangent.

Formula =ATAN("invalid")

Expected result #VALUE!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Arctangent of one

Formula =ATAN(1)

Expected result 0.785398163397448

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Negative slope angle

Formula =ATAN(-1)

Expected result -0.785398163397448

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Does ATAN ever return #NUM! for large values?

No. ATAN accepts any real input and asymptotically approaches +/-PI()/2.

Implementation

Engine source

On this page