Contact

ERF Function (OpenOffice Calc)

Engineering Intermediate OpenOffice Calc

Use Apache OpenOffice ERF for signed Gaussian integrals, with one- and two-limit examples and an observed far-tail subtraction limitation.

Verification status: Eight reference formulas and 4 diagnostic cases were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, using XLSX import and GUI hard recalculation. Saved formula identities and typed results were checked. The ERF(6;10) subtraction result is zero despite a positive mathematical reference. How formula examples are checked

Quick answer: =ERF(0.5) returned 0.520499877813 in the tested Apache OpenOffice 4.1.16 build.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; this identifies a verified release, not a final supported version.
  • Scope: Desktop Calc with its Analysis add-in, English function names and semicolon-separated formulas.
  • Checked: October 14, 2026. Eight reference formulas and the listed diagnostics were recalculated after XLSX import in 4.1.16 on Linux x86-64, Build 9816. Source and independent reference calculations were also checked.

What ERF returns

ERF evaluates the error function, a Gaussian integral scaled by 2/SQRT(PI()). With one argument it integrates from zero to that endpoint. With two arguments it returns the signed integral from the first limit to the second. Release entry.

Syntax and arguments

=ERF(Lower [; Upper])

One or two arguments are accepted. In the one-argument form the required value is the endpoint, despite the historical Lower label. In the two-argument form both limits are used in the supplied order; the add-in subtracts ERF(Lower) from ERF(Upper). Negative inputs and reversed limits are meaningful, with the corresponding sign.

Reproducible examples

The native column records the saved 4.1.16 results. Ordinary numeric values are rounded to twelve decimal places, with scientific notation for tiny values. Stored values and display text were inspected separately; a twelve-decimal cell display can hide a tiny nonzero number. In particular, the far-tail interval’s native zero is preserved rather than replaced with the positive reference.

Formula Native 4.1.16 result Independent reference
=ERF(0) 0 0
=ERF(0.5) 0.520499877813 0.520499877813
=ERF(1) 0.84270079295 0.84270079295
=ERF(-1) -0.84270079295 -0.84270079295
=ERF(0;1) 0.84270079295 0.84270079295
=ERF(-1;1) 1.685401585899 1.685401585899
=ERF(1;2) 0.152621472069 0.152621472069
=ERF(6;10) 0 2.151973671250e-17

Practical worksheet

=ERF(1;2) gives approximately 0.152621472069. Reversing the limits gives the negative value, while equal limits give zero. Put lower and upper bounds in separately labeled cells so a later change cannot silently reverse the event.

For the symmetric interval −1 through 1, ERF returns approximately 1.685401585899. A result above 1 is valid here because this is a scaled integral, not already a probability. Do not force it into a percentage interpretation without the correct transformation.

Advanced interpretation and checks

For a standard-normal variable Z, P(a<Z≤b)=ERF(a/SQRT(2);b/SQRT(2))/2. Both the SQRT(2) input scaling and division by 2 matter. As a simpler mathematical identity, ERF(1)+ERFC(1)=1.

The narrow far-tail example ERF(6;10) has a positive mathematical reference near 2.151973671250×10⁻¹⁷. This add-in evaluates the difference of two single-limit error functions, so it can lose that small area when both values round to 1. The table retains the native result beside the reference instead of treating a successful zero as exact mathematics.

For positive tail limits, ERFC(lower)−ERFC(upper) is an algebraic alternative that avoids subtracting two near-one values. That rearrangement is mathematical guidance; its full range of numerical behavior is not established by these tests.

Boundaries and troubleshooting

A negative interval result can simply mean the limits are reversed. The function does not sort them automatically. Likewise, negative single arguments are accepted by the inspected helper and follow odd symmetry ERF(−x)=−ERF(x).

Inspect input types and missing data. An empty reference and an intentional zero can produce the same numeric argument while meaning different things in the worksheet. Error and blank diagnostics below apply only to the exact tested forms.

These additional formulas were recalculated through the same import path. H5 is a deliberately empty cell where referenced. Error displays are retained as errors, even when an ODS numeric attribute stores zero.

Formula Observed result or error
=ERF(2;1) -0.152621472069
=ERF(1;1) 0
=ERF("abc") #VALUE!
=ERF(H5) 0

Other spreadsheet implementations

The ERF guide for Gnumeric documents that product’s own syntax and tested behavior. A shared function name does not guarantee the same argument conversion, text parsing, branch or precision rules.

Official evidence and checking scope

The saved ODS retained every tested formula identity. A deliberately stale SUM cache changed from 999999 to 3, and an uncached SUM returned 7 after hard recalculation. Native evidence covers the eight reference formulas and listed diagnostics only. Other explanatory compositions are independent mathematical checks; other releases, locales and extreme-value behavior were not established by this run.