• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stillwater-sc / universal / 38145667205
89%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 11 Oct 2026 02:48PM UTC
Jobs 1
Files 715
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Oct 2026 02:03PM UTC coverage: 86.609% (+0.05%) from 86.561%
38145667205

push

github

web-flow
fix(ereal): isone, log near 1, trig at negative x, tanh, inverse hyperbolics, fmod and pow (#1672)

* fix(ereal): isone, log near 1, trig at negative x, tanh, inverse hyperbolics, fmod and pow

Each function returned a wrong value, not an imprecise one:

- isone() tested the leading limb only, so 1 + 1e-20 counted as one: log(1 + 1e-20)
  returned 0, and pow/pown short-circuited such a base to 1. Every tail limb must now
  be zero.
- log centres the mantissa on 1, [sqrt(1/2), sqrt(2)), so near 1 nothing cancels
  against e ln 2 (it lost 100 bits at 1 + 1e-30).
- sin and cos subtracted the period count of |x| from x itself, so a negative x beyond
  2 pi moved further out and the series diverged: sin(-219.35) was -4.4e78, sin(-5549.5)
  NaN. Both now reduce |x| through one helper and apply the symmetry; tan follows.
- tanh formed inf / inf for large |x| (NaN at 3576): now e / (e + 2) from expm1 near 0,
  1 - 2 / (e^2a + 1) beyond, saturating to +/-1.
- asinh, acosh and atanh use log1p forms (asinh(3e-50) and atanh(1e-30) were 0), with
  log(x) + ln 2 beyond 2^256; sinh uses expm1 near 0. All odd functions evaluate at |x|.
- fmod and remainder correct the rounded quotient against the exact remainder: at an
  exact multiple fmod returned y instead of 0, and ties now go to even reliably.
- pow took y = 3 + 1e-30 for the integer 3; the exponent must equal the integer exactly.

exp is documented: a result near the bottom of the limb type's range keeps only the limbs
above its smallest subnormal (exp(-700) holds 64 bits with double limbs).

The new elastic/ereal/math/functions/special_arguments.cpp checks every case against an
independent reference (Taylor series with exact rational coefficients, libm, exact dyadic
values); every group fails on the previous headers. The b-posit correct-rounding test drops
its workarounds and uses ereal's functions directly as its oracle: the exhaustive 16-bit
level-2 sweep passes on both engines.

Closes #1668

BEHAVIOUR-CHAN... (continued)

81 of 81 new or added lines in 6 files covered. (100.0%)

48231 of 55688 relevant lines covered (86.61%)

9857773.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38145667205.1 11 Oct 2026 02:48PM UTC 715
86.61
GitHub Action Run
Source Files on build 38145667205
  • Tree
  • List 715
  • Changed 8
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38145667205
  • bc1484af on github
  • Prev Build on main (#38129182759)
  • Next Build on main (#38148623918)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc