Contact

ACOT Function (OpenOffice Calc)

Math Intermediate OpenOffice Calc

Learn the ACOT function in Apache OpenOffice Calc: Returns the inverse cotangent of a number.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

Quick answer

ACOT returns the inverse cotangent of a number: the angle whose cotangent is that number. Apache OpenOffice Calc returns the angle in radians, on the principal branch between 0 and π. To display degrees, wrap it in DEGREES. For example:

=ACOT(1)

Expected: approximately 0.785398163397448 radians (= π/4), an example given by the official Apache ACOT reference.

=DEGREES(ACOT(1))

Expected: 45 degrees. These results are documented by Apache; no native execution was performed for the saved research.

Exact syntax and arguments

=ACOT(number)
  • number — required: the numeric cotangent of the angle you want. Enter a real number, a numeric cell reference such as A2, or an expression that evaluates to a real number. The official one-argument syntax lists no optional argument or default.
  • Result: a real-valued radian angle, in the interval from 0 to PI(). For ordinary finite real inputs, the mathematical principal value is strictly between those two endpoints; the angle gets closer to 0 as the input grows positively, and closer to Ï€ as it grows negatively.
  • Units: ACOT does not accept an angle in degrees and does not automatically return degrees. Its input is a ratio (cotangent), and its output is an angle in radians.

The syntax and output range are given by Apache’s ACOT reference. PI() is documented separately in the Apache PI reference.

Formula entry and locale: start a Calc formula with =. These examples use an English-language function name and . as the decimal mark. Calc documentation uses semicolons (;) between arguments, unlike common Excel examples that use commas; this matters in the two-argument ROUND example below. A locale using a decimal comma may display or require decimal numbers differently. Avoid pasting 0.5 unchanged into a comma-decimal installation without checking its locale settings. See Apache’s formula-structure guidance.

Worked example: convert cotangent ratios into angles

Suppose you have cotangent values from a trigonometry exercise or a geometric measurement. Type this miniature table into a blank Calc sheet. Use ordinary numeric values in column A (not quoted text):

On a narrow screen, scroll this table sideways to see every column.

Cell Value or formula Purpose
A1 Cotangent Header
B1 Angle (radians) Header
C1 Angle (degrees) Header
A2 -2 Negative cotangent
A3 -1 Negative cotangent
A4 0 Zero cotangent
A5 0.5 Fractional positive cotangent (English-style decimal)
A6 1 Positive cotangent
A7 2 Larger positive cotangent

Enter in B2:

=ACOT(A2)

Enter in C2:

=DEGREES(B2)

Copy or fill B2:C2 down to row 7. Set columns B and C to show six decimal places if you want to compare the following mathematically expected results:

On a narrow screen, scroll this table sideways to see every column.

Row A: Cotangent Expected B: Radians (6 d.p.) Expected C: Degrees (6 d.p.)
2 -2 2.677945 153.434949
3 -1 2.356194 135.000000
4 0 1.570796 90.000000
5 0.5 1.107149 63.434949
6 1 0.785398 45.000000
7 2 0.463648 26.565051

Independent validation method: these values were calculated outside OpenOffice as atan2(1, x), with degrees computed as angle × 180/Ï€, then rounded for display. atan2 is used here as an independent mathematical check, not as a claim about Apache’s internal implementation. Decimal formatting can change the displayed digits without changing the stored result.

Why negative, zero and positive values give different angles

The principal arccotangent takes account of the cotangent’s sign. Positive inputs yield angles between 0° and 90°; zero yields 90°; negative inputs yield angles between 90° and 180°. A useful identity for checking the chosen branch is:

ACOT(-x) = PI() - ACOT(x)

For instance, ACOT(-1) is mathematically 3*PI()/4 (135°), whereas ACOT(1) is PI()/4 (45°). This is why replacing ACOT(x) with ATAN(1/x) without handling branches is unsafe: it also divides by zero at x = 0 and can choose the wrong angle for negative inputs. ATAN is a separate, documented Calc function.

Advanced examples

Round the degree output for a report

If A2 = -2, use:

=ROUND(DEGREES(ACOT(A2));2)

Expected: 153.43. ROUND(number; places) and its semicolon separator are documented in the official Apache ROUND reference. Use a cell-number format instead of ROUND if you only want to display fewer decimals while retaining more precision in downstream formulas.

Recalculate from a changing input cell

Keep the raw cotangent in A2 and enter =ACOT(A2) in B2. Changing A2 from 1 to -1 is mathematically expected to change the angle from π/4 to 3π/4. This is useful for comparing scenarios without repeatedly editing a formula.

Sanity-check a result against a known angle

An angle of 45° has cotangent 1, so =DEGREES(ACOT(1)) should be 45. An angle of 135° has cotangent -1, so =DEGREES(ACOT(-1)) should be 135. These are independent trigonometric identities; no native run is claimed.

Troubleshooting and limits

  • A result such as 0.785398 is not 0.785398 degrees. ACOT returns radians. Apply DEGREES if the required unit is degrees.
  • A negative value produces an angle greater than 90°. That is expected on the documented principal branch; do not assume ATAN(1/x) is always equivalent.
  • The result is very close to 0 or Ï€. Large-magnitude inputs naturally approach the branch endpoints; displaying too few digits can make a nonzero result look like zero.
  • A pasted formula is rejected. Confirm the formula begins with =, parentheses balance, and any multi-argument functions use Calc’s semicolon convention. In a comma-decimal locale, verify the decimal notation.
  • Text, empty cells, errors or special values. The Apache ACOT page specifies a numeric input but does not document all coercion rules or exact OpenOffice error codes. Inspect the input cell and convert known numeric text explicitly where appropriate. Do not promise a particular Calc error number or automatic text-to-number conversion without a native test.
  • Unexpected spreadsheet format or application. Confirm this function is available in the actual spreadsheet program and release in use. An identically named function elsewhere does not guarantee identical type coercion, error handling or file-format behaviour.

Compatibility: OpenOffice, Excel and other Calc programs

The Apache OpenOffice wiki explicitly documents ACOT(number), and the current official download page identifies Apache OpenOffice 4.1.16 as the released version checked for this review. The historical wiki reference was not itself a 4.1.16 runtime test. The same documented principal-angle convention appears in Microsoft’s ACOT reference, including Excel 2016/2019/2021/2024 and Microsoft 365. Nevertheless, copying formulas may require changing list separators or numeric formatting, and special input behaviour was not tested across programs.

LibreOffice also documents an ACOT function, but LibreOffice documentation or execution is not evidence of OpenOffice runtime support. For files exchanged between programs, test real input values, formulas, number formats and error cases in the target application before relying on a production calculation.

Official sources and validation notes

How this guide was checked

The syntax and behaviour are based on the Apache OpenOffice Calc references cited above. The sample calculations were independently checked; they are expected results, not outputs observed in Apache OpenOffice Calc. Test locale-sensitive text conversion and imported files in your own installation. View the example-check record.

Official ACOT reference · Editorial standards