Skip to content

Close ThickNumbers interface gaps#11

Merged
timholy merged 2 commits into
mainfrom
teh/tn-interface
Jul 15, 2026
Merged

Close ThickNumbers interface gaps#11
timholy merged 2 commits into
mainfrom
teh/tn-interface

Conversation

@timholy

@timholy timholy commented Jul 15, 2026

Copy link
Copy Markdown
Member

Report mid, wid and rad from the stored center and σ rather than deriving them from loval/hival. The round-trip through center ± σ loses an ulp, which could push rad below the radius handed to midrad and break its containment contract.

Add log2, log10, exp2 and exp10, defined by rescaling to the natural base (exact under the constant-factor rules).

Define ^(::GVar, ::Rational) to resolve the ambiguity with Base's ^(::Number, ::Rational).

Test conformance against the shared ThickNumbersInterfaceTests suite, and add Aqua and ForwardDiff checks.

Assisted-by: Claude Opus 4.8 noreply@anthropic.com

Report `mid`, `wid` and `rad` from the stored `center` and `σ` rather
than deriving them from `loval`/`hival`. The round-trip through
`center ± σ` loses an ulp, which could push `rad` below the radius
handed to `midrad` and break its containment contract.

Add `log2`, `log10`, `exp2` and `exp10`, defined by rescaling to the
natural base (exact under the constant-factor rules).

Define `^(::GVar, ::Rational)` to resolve the ambiguity with Base's
`^(::Number, ::Rational)`.

Test conformance against the shared ThickNumbersInterfaceTests suite,
and add Aqua and ForwardDiff checks.

Assisted-by: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b007529) to head (efe8d4c).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #11   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          199       207    +8     
=========================================
+ Hits           199       207    +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Exercise `^(::GVar, ::Rational)` and `wid(::GVar)`, which the existing
suite never reached.

Assisted-by: Claude Opus 4.8 <noreply@anthropic.com>
@timholy timholy merged commit 309f20e into main Jul 15, 2026
4 checks passed
@timholy timholy deleted the teh/tn-interface branch July 15, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant