Contact

ACOS Function in ONLYOFFICE Spreadsheet Editor: Inverse Cosine and Examples

Math and Trigonometry Beginner ONLYOFFICE Spreadsheet Editor

Find angles from cosine ratios with ONLYOFFICE ACOS, convert radians to degrees, check valid domains and avoid principal-angle mistakes.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked

Quick answer

=DEGREES(ACOS(0.5)) has independently expected result 60. =ROUND(ACOS(0),6) has expected value 1.570796 radians. All results here are mathematical expectations independently calculated, not results observed in an ONLYOFFICE installation.

What ACOS does and when to use it

ACOS (arccosine) reverses cosine over its principal-angle interval: it takes a numeric cosine value from −1 through 1 and returns a mathematical angle from 0 through π radians. The official ONLYOFFICE ACOS reference explicitly requires the input to be between −1 and 1 inclusive. Its short article does not specify every error code or the first-supported version.

Typical applications include spreadsheet diagrams, engineering classroom exercises, geometry models and numerical cross-checks. The mathematical output range is [0,Ï€] radians. This is a principal branch, not a unique inverse across every angle.

Exact documented syntax, argument order and defaults

=ACOS(number)
Argument position Name Required? Documented type, units and limits Default
1 number Yes One required numeric cosine value, not an angle; inclusive mathematical domain −1 ≤ number ≤ 1. No optional argument or default is documented. None — the official article documents no optional arguments.

The name, spelling, one-argument order and the specific documented domain/unit details above come from the official ONLYOFFICE ACOS reference, checked 2026-10-13 UTC. A cell reference such as ACOS(A2) is ordinary formula usage. Coercion of arbitrary strings, blank cells, error values, and exact handling of floating-point underflow/overflow are not fully specified in the short vendor article and are not asserted here.

Version, edition and regional settings

The ACOS function reference was checked on 2026-10-13 (UTC); it is a function-level English-language help article without a first-supported-version matrix. The function is documented for ONLYOFFICE Spreadsheet Editor, but that alone does not prove identical behaviour in every web Docs, desktop, offline or self-hosted release. The official Docs changelog and Desktop Editors changelog are separate; neither establishes the earliest build supporting the precise formula from the references checked here. No native Desktop or web execution was available in this run.

The official function insertion guide describes typing a formula or choosing Home / Formula → Insert Function, and notes the Shift+F3 shortcut. The Advanced Settings reference documents independent Formula Language, Region, and decimal/thousands separator settings. The examples below use English names, decimal periods, and commas between ROUND arguments. Check the actual editor’s formula language and syntax suggestions when moving formulas across locales; localized aliases and separators have not been native-tested. In a one-argument ACOS(...) call, there is no function-argument separator inside the call.

Cross-product compatibility: this guide shows the official ONLYOFFICE English syntax only. Other spreadsheet products may have similarly named functions; their runtime error coercion, locale, precision, and version support are not evidence for ONLYOFFICE. A file exported between products requires an explicit test in each destination environment. No claim of exact compatibility is made here.

Step-by-step: a reusable test worksheet

  1. Open a blank workbook. In A1, type Input (number or formula), in B1 type ACOS result, and in C1 type Rounded check.
  2. Copy the input expressions in the A column shown below. If an input starts with =, enter it as a formula (rather than text); a bare numeric entry is typed as a number. Do not enter Markdown backticks.
  3. In B2 enter =ACOS(A2); in C2 enter =ROUND(B2,6) in English-language formula notation.
  4. Fill B2:C2 downward through row 12. The row-specific formulas below show what filling down should produce.
  5. Compare column C against the independently calculated results. Differences require checking the release, language, input units, and rounding. No native execution or screenshots are claimed.
Cell A Formula in B Formula in C Expected result displayed in C
A2: -1 =ACOS(A2) =ROUND(B2,6) 3.141593
A3: -0.866025403784 =ACOS(A3) =ROUND(B3,6) 2.617994
A4: -0.707106781187 =ACOS(A4) =ROUND(B4,6) 2.356194
A5: -0.5 =ACOS(A5) =ROUND(B5,6) 2.094395
A6: 0 =ACOS(A6) =ROUND(B6,6) 1.570796
A7: 0.5 =ACOS(A7) =ROUND(B7,6) 1.047198
A8: 0.707106781187 =ACOS(A8) =ROUND(B8,6) 0.785398
A9: 0.866025403784 =ACOS(A9) =ROUND(B9,6) 0.523599
A10: 1 =ACOS(A10) =ROUND(B10,6) 0
A11: =COS(PI()/3) =ACOS(A11) =ROUND(B11,6) 1.047198
A12: =COS(RADIANS(120)) =ACOS(A12) =ROUND(B12,6) 2.094395

Validation method: Python math functions independently calculated each raw expected number and then prepared a six-decimal display value. Tiny floating-point differences are possible; the six-decimal display is an editorial expectation, not a promised bitwise result for every installation.

Additional worked formulas and practical cases

Each expression below is independent; enter it into an empty cell. The ROUND(...,6) wrapper makes comparisons readable in the English-language reference syntax. The listed outputs are calculated results, not screenshots or native application observations.

Application Enter in any empty cell Expected 6-decimal display
Get degrees from a cosine of one-half =ROUND(DEGREES(ACOS(0.5)),6) 60
Get supplementary angle in degrees =ROUND(DEGREES(ACOS(-0.5)),6) 120
Angle from a right triangle ratio 3/5 =ROUND(DEGREES(ACOS(3/5)),6) 53.130102
Recover an angle of 45 degrees =ROUND(DEGREES(ACOS(COS(RADIANS(45)))),6) 45
Angle between perpendicular unit vectors =ROUND(DEGREES(ACOS(0)),6) 90
Law of cosines: side lengths 3,4,5 =ROUND(DEGREES(ACOS((3^2+4^2-5^2)/(2*3*4))),6) 90

Advanced applications

Recover an angle from a right triangle

Put adjacent side length 3 in D2 and hypotenuse 5 in E2. In F2, enter =DEGREES(ACOS(D2/E2)). The independently calculated result is approximately 53.130102°. This assumes a valid positive hypotenuse and an adjacent/hypotenuse ratio in the allowed −1…1 range. It is not an instruction to enter 53.13 as the argument to ACOS.

Law of cosines: derive an included angle

Suppose the side lengths of a triangle are in D3:F3 as 3, 4, 5. To find the angle opposite the last side, use =DEGREES(ACOS((D3^2+E3^2-F3^2)/(2*D3*E3))). The expected mathematical angle is 90°. Check that side lengths are positive, obey the triangle inequalities, and that neither denominator factor is zero.

Protect against slight ratio excursions

For physically valid computed cosine values close to ±1, binary rounding may make a calculated ratio slightly outside the mathematical domain. It can sometimes be reasonable to clamp a theoretically valid ratio with MIN(1,MAX(-1,ratio)) before ACOS, but only after checking the underlying model. For an actually invalid triangle, clamping hides an error; document this trade-off. The exact ONLYOFFICE error result for out-of-range input is not verified.

Principal angles are not every solution

ACOS(COS(7*PI()/6)) does not recover 210°: inverse cosine returns a principal angle in 0° to 180°. If direction and quadrant matter, a separate quadrant-aware method must be selected and verified. Avoid silently using ACOS to reconstruct a full-circle bearing.

Limits, errors and troubleshooting

  • Input outside −1 to 1: The official parameter definition excludes it. The result is mathematically undefined over the reals; the precise displayed ONLYOFFICE error code is unverified.
  • Mixing cosine ratio and angle: =ACOS(60) is not the inverse of a 60-degree input. To recover an angle you need an input such as COS(RADIANS(60)).
  • Radians versus degrees: For an output in degrees, wrap ACOS with DEGREES.
  • Unexpected quadrant: ACOS returns only the principal interval [0,Ï€] mathematically, so it cannot distinguish angles around the full circle from a cosine alone.
  • Rounding near domain boundaries: Ratios a tiny amount larger than 1 or smaller than −1 need a model/precision review, not indiscriminate clamping.
  • Invalid side lengths/zero denominator: Check geometry before calculating the ratio. Native ONLYOFFICE error handling for text, blanks and the exact displayed error string has not been confirmed.
  • Version and locale: Read formula suggestions in the target Spreadsheet Editor and review separate web/desktop release documentation.

Official references were checked on 2026-10-13 UTC; they establish documented syntax, not native execution of the examples.

Verification limitations

All outputs are independent mathematical expectations. Native ONLYOFFICE Desktop/web execution, exact runtime errors, localized parsing, historical release support and workbook interchange remain untested.