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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 06 Nov 2026 09:37AM UTC
Jobs 1
Files 868
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

06 Nov 2026 09:17AM UTC coverage: 88.633% (+0.03%) from 88.603%
42193918817

push

github

web-flow
feat(numeric): compensated sinh, cosh, tanh, asinh, acosh, atanh, pow, cbrt and hypot for faithful (#1961)

Part 4 of #1952, the last.

- The hyperbolics are built on #1955's exp, expm1, log and log1p, in
  forms that do not cancel: sinh = (s + s / (1 + s)) / 2 and
  tanh = s / (s + 2) with s = expm1; asinh, acosh and atanh through
  log1p. Past log(max) - 1, sinh and cosh use exp(|x|/2)^2 / 2. The
  margin matters: std::log(max) rounded to float lies above the true
  ln(max), where the direct form gave NaN.
- pow: an integer y with |y| <= 64 uses binary powering, exact whenever
  the result fits a pair. Otherwise x^y = 2^(m + n) exp(r), with y k and
  w = y log(b) both reduced exactly, so no intermediate overflows:
  pow(0.7f, 270) is finite. The accuracy is a few units while
  |y log x| <= 1, then about 5 + 4 |y log x| (the error budget of log(b)
  and the product) or 5 + |y| for binary powering, above the
  full-precision floor. That is a limit of pair precision; dd shares it.
  The special cases follow C99 F.10.4.4, with ERANGE on every path.
- cbrt: an exact scaling, Real's cbrt and two Newton steps. hypot:
  scaled by a common power of two.
- Domain errors are NaN with EDOM, or throw faithful_domain_error with
  FAITHFUL_THROW_ARITHMETIC_EXCEPTION set.

numeric/faithful/hyperbolic_and_power.cpp measures every function over
20000 arguments per range, against dd for float and qd for double. The
worst error is 3.6 and 3.9 units, against a bound of 5. Each pow sample
is held to 5 + 4 g, with g the measure of its own path; the measured
slopes are 2.7 (libstdc++), 3.2 (libc++) and 1.0. sinh and cbrt through
Real fail the test by 10^7 to 10^18 units.

Resolves #1957
Relates to #1952

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

337 of 361 new or added lines in 6 files covered. (93.35%)

59028 of 66598 relevant lines covered (88.63%)

9649812.05 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
87.76
numeric/faithful/hyperbolic_and_power.cpp
Jobs
ID Job ID Ran Files Coverage
1 42193918817.1 06 Nov 2026 09:37AM UTC 868
88.63
GitHub Action Run
Source Files on build 42193918817
  • Tree
  • List 868
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42193918817
  • f5744a9f on github
  • Prev Build on main (#42180824817)
  • Next Build on main (#42236480945)
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