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

stillwater-sc / universal / 26854451401
85%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 03 Jun 2026 12:19AM UTC
Jobs 1
Files 673
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 11:36PM UTC coverage: 84.472% (-0.009%) from 84.481%
26854451401

push

github

web-flow
feat(elreal): atan / asin / acos (Phase 7.5, #931) (#1043)

Inverse trig in math/trigonometry.hpp, on the 7.1 (pi) / 7.2 (sqrt) foundation:
- atan(x) = 2*atan(x/(1+sqrt(1+x^2))) -- argument halving until small, then the
  alternating Taylor series, scaled back by 2^k.
- asin(x): atan(x/sqrt(1-x^2)) for |x|<=1/sqrt(2); else the reflection
  asin(x)=sign(x)*(pi/2 - asin(sqrt(1-x^2))) so the atan argument stays bounded
  (a direct x/sqrt(1-x^2) blows up near |x|=1 and underflows the host range).
  |x|=1 -> +/-pi/2; |x|>1 -> empty.
- acos(x) = pi/2 - asin(x).

Host scope: atan is robust and tested on {double, float}. asin/acos are the
deepest compositions in the suite (sqrt . atan . div . pi); a float host's narrow
exponent range underflows the intermediate expansions toward the domain boundary
(where 1-x^2 also cancels), so they are tested on {double}. Documented in the
header.

Tests: value vs std::<fn>, asin(x)+acos(x)==pi/2, atan(x)+atan(1/x)==pi/2,
4*atan(1)==pi, parity, domain; 0-overlap on every result.

All elreal tests pass on gcc and clang (Release) and with assertions on (~1s);
RISC-V cross-compiles clean; ASCII clean.

Relates to #931 (sub-phase 7.5).

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

37 of 37 new or added lines in 1 file covered. (100.0%)

15 existing lines in 4 files now uncovered.

47468 of 56194 relevant lines covered (84.47%)

6031418.43 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
93.95
-0.47% include/sw/universal/number/cfloat/cfloat_impl.hpp
5
50.45
-4.5% include/sw/universal/verification/posit_test_suite_randoms.hpp
1
80.58
-0.22% include/sw/universal/number/posit1/specialized/posit_16_1.hpp
1
90.06
0.28% include/sw/universal/number/posito/posito_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 26854451401.1 03 Jun 2026 12:19AM UTC 673
84.47
GitHub Action Run
Source Files on build 26854451401
  • Tree
  • List 673
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26854451401
  • 03de5a82 on github
  • Prev Build on main (#26848207996)
  • Next Build on main (#26909111685)
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