• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

stillwater-sc / universal / 26796877956
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feat/issue-931-7.6-elreal-forward-trig-v2
DEFAULT BRANCH: master
Ran 02 Jun 2026 04:19AM UTC
Jobs 1
Files 669
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

02 Jun 2026 03:40AM UTC coverage: 84.465% (+0.3%) from 84.189%
26796877956

push

github

web-flow
feat(elreal): sqrt and hypot (Phase 7.2, #931) (#1038)

First math-suite sub-phase of Epic #923 Phase 7, building on Phase 6 mul/div.

- math/sqrt.hpp: sqrt(a, depth) -- Newton-Raphson x_{n+1} = (x_n + a/x_n)/2 on
  the lazy stream. Quadratic convergence; seeded from the host-double sqrt of the
  leading approximation and run with geometrically growing working depth
  (1,2,4,...,depth) so early low-accuracy steps stay cheap. Iterations =
  3 + ceil(log2(depth+1)) (mirrors the ereal precedent). Domain: sqrt(0)=0
  (empty), sqrt(<0)=empty.
- math/hypot.hpp: hypot(x,y,depth) = sqrt(x*x + y*y). Expansion arithmetic carries
  the squares exactly (block exponents are int32_t), so the naive formula is safe.

New elastic/elreal/math/ test directory (el_math CMake group):
- sqrt.cpp: perfect squares exact via the dyadic oracle; irrational roots vs
  std::sqrt and round-trip sqrt(a)^2 ~= a (host-scaled tolerance); 0-overlap;
  domain (sqrt(0)=empty, sqrt(<0)=empty).
- hypot.cpp: Pythagorean triples + general args vs std::hypot; 0-overlap.

Tests parameterised over {double, float, bfloat16}. All 27 elreal tests pass on
gcc and clang (Release) and with assertions on (0-overlap holds on every result).

Relates to #931 (sub-phase 7.2 of the Phase 7 math suite).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

19 of 19 new or added lines in 2 files covered. (100.0%)

47337 of 56043 relevant lines covered (84.47%)

6016360.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26796877956.1 02 Jun 2026 04:19AM UTC 669
84.47
GitHub Action Run
Source Files on build 26796877956
  • Tree
  • List 669
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26796877956
  • 90b449c1 on github
  • Prev Build on main (#26790633100)
  • Next Build on main (#26830371194)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc