Contact

ATAN Function (Gnumeric)

Math Beginner Gnumeric

Learn the ATAN function in Gnumeric: Returns the arctangent of a number.

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

ATAN returns the principal angle whose tangent equals a supplied number. It commonly converts a rise/run ratio into an inclination. The result is in radians; use DEGREES when a degree-based output is required.

Syntax and angle range

=ATAN(x)

x is one required numeric value, often a ratio calculated from cells. For finite real inputs, the result lies between -PI()/2 and PI()/2. Positive inputs give positive angles, negative inputs give negative angles, and ATAN(0) is zero. No optional argument selects units or a quadrant.

The input is a tangent value, not an angle in degrees. =ATAN(45) does not convert 45 degrees. The opposite operation for a 45-degree angle would be =TAN(RADIANS(45)).

Retained starting example

=ATAN(0)

The expected result is 0, corresponding to a horizontal line with zero rise and nonzero run.

Worked rise/run example

Put Rise in A1 and Run in B1. Enter 3 in A2 and 4 in B2. In C2 enter =A2/B2, giving 0.75. In D2 enter =ATAN(C2), giving approximately 0.6435011088 radians. In E2 enter =DEGREES(D2), giving approximately 36.86989765 degrees.

An independent triangle check uses sides 3, 4 and 5: the angle has tangent 3/4, sine 3/5 and cosine 4/5. Rise and run must use the same unit. Mixing centimeters and meters without conversion changes the ratio.

For a second row with rise -3 and run 4, the inclination is approximately -36.86989765 degrees. The sign records direction within ATAN’s principal range.

Advanced use: convert percent grade

If A5 contains 12% stored as 0.12, =DEGREES(ATAN(A5)) returns approximately 6.842773413 degrees. If A5 contains the plain number 12 instead, use =DEGREES(ATAN(A5/100)). Keep the storage convention explicit.

A round-trip control is =TAN(ATAN(0.75)), expected to be approximately 0.75. Compare with a small tolerance rather than demanding exact equality of every floating-point digit.

Quadrants and troubleshooting

The ratio loses information: points (4,3) and (-4,-3) both give 0.75 but point in opposite directions. For a full point direction, use Gnumeric’s two-coordinate ATAN2 and check its product-specific argument order. Adding 180 degrees indiscriminately is not a valid repair.

A zero run causes the division to fail before ATAN receives a usable argument. Treat vertical-line geometry explicitly instead of substituting zero slope. Likewise, inspect upstream errors and nonnumeric values.

If an output seems too small, check whether radians are being compared with a degree-based expectation. These examples cover moderate finite slopes; extreme-magnitude behavior of the surrounding division is not certified here.

Availability and verification

Version coverage: Gnumeric 1.12.57 has the scoped checks below. The 1.12.62 evidence is a documentation/source check dated October 14, 2026.

  • Introduced: Original introduction not established. The earliest demonstrated support in this guide is 1.12.57.
  • Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-math function module must be included and enabled.
  • Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.

The executable contract is also present in the official Gnumeric 1.12.57 fn-math source. The saved source was originally retrieved on October 17, 2026 and re-inspected for this guide. The last functioning release is not established; support in a named version is not a retirement claim.

On October 17, 2026, Gnumeric ssconvert 1.12.57 recalculated a synthetic workbook in the C.UTF-8 locale. Scoped controls: =ATAN(0) → 0; =ATAN(1) → 0.7853981633974483; =ATAN(-1) → -0.7853981633974483; =DEGREES(ATAN(3/4)) → 36.86989764584402. These are native calculation-engine results, not GUI tests or screenshots. Other tutorial layouts and displayed outputs are independent expectations unless covered by these exact formulas. Input/output files, preserved formulas, raw values and hashes were retained. The XLSX importer logged an unused workbookProtection-element warning; changed-input controls and recorded results were checked.

Official references