Formualizer Docs

ACOS

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

Use ACOS when you need an angle from a normalized adjacent/hypotenuse 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

=ACOS(number)

Arguments

ArgumentTypeRequiredDefault
numbernumberRequired—

How it works

Inverts cosine on the interval from 0 to π. The real input must be from −1 through 1 inclusive.

Remarks

  • Domain: input must be between -1 and 1, inclusive.
  • Radians: output is in the range [0, PI()].

Error cases

  • Errors: returns #NUM! when the input is outside the valid domain.

Examples

Find the angle with horizontal coordinate one half.

Formula =ACOS(0.5)

Expected result 1.0471975511966

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 negative horizontal coordinate of one half gives an obtuse angle.

Formula =ACOS(-0.5)

Expected result 2.0943951023932

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 zero cosine maps to π/2.

Formula =ACOS(0)

Expected result 1.5707963267949

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 cosine.

Formula =ACOS("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?.

Upper-angle boundary

Formula =ACOS(-1)

Expected result 3.14159265358979

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

Why does ACOS reject values like 1.0001?

ACOS is only defined on [-1, 1], so out-of-range inputs return #NUM!.

Implementation

Engine source

On this page