Skip to content

Make iszero throw FPTNException; add iszero_tn - #25

Open
timholy wants to merge 1 commit into
mainfrom
teh/iszero
Open

Make iszero throw FPTNException; add iszero_tn#25
timholy wants to merge 1 commit into
mainfrom
teh/iszero

Conversation

@timholy

@timholy timholy commented Sep 6, 2026

Copy link
Copy Markdown
Member

When X contains both zero and nonzero values, iszero(X) cannot
return a single Bool, so like == it violates the Fundamental
Principle of Thick Numbers.

Breaking change: iszero now throws for thick numbers. Use iszero_tn
for the additive identity test, including ForwardDiff partials.
The new predicate also accepts point numbers.

Assisted-by: Claude Fable 5.1 noreply@anthropic.com

When `X` contains both zero and nonzero values, `iszero(X)` cannot
return a single `Bool`, so like `==` it violates the Fundamental
Principle of Thick Numbers.

Breaking change: iszero now throws for thick numbers. Use iszero_tn
for the additive identity test, including ForwardDiff partials.
The new predicate also accepts point numbers.

Assisted-by: Claude Fable 5.1 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.15%. Comparing base (49aed10) to head (ce3ac23).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   94.00%   94.15%   +0.15%     
==========================================
  Files           2        2              
  Lines         150      154       +4     
==========================================
+ Hits          141      145       +4     
  Misses          9        9              

☔ 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.

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