Skip to content

LambertW over the reals is defined where its branch is real - #2263

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
lambertw-is-real-where-its-branch-is
Oct 30, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
lambertw-is-real-where-its-branch-is

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

lambertw's condition was the complex one under either reading, so DomainConditionIn(Domain.Real) of lambertw(0, x) was True, though W_0(-1) is -0.318 + 1.337i. Over the reals the condition is now where the branch is real: W_0 for z >= -1/e, W_(-1) for -1/e <= z < 0 (both are -1 at -1/e), and no other branch anywhere. The complex condition is unchanged.

LambertWOverTheRealsTest: five cases fail on master, and ten pass on both. lambertw is new since 2.6.0, so no answer changes against it and there is no BREAKING entry. Suite 18226 passed. The F# wrapper suite, the Mcp, Terminal and InteractiveWrapper suites and the AOT smoke test pass. BoundCheck, RootCheck, CasBench, PropCheck, SimpSweep, RuleCheck, CanonCheck and Confluence are unchanged. Found by work/domaincheck.

Part of #2256.

🤖 Generated with Claude Code

lambertw's condition was the complex one under either reading:
every whole branch, and every z but 0 off the principal one. So
DomainConditionIn(Domain.Real) of lambertw(0, x) was True, though
W_0(-1) is -0.318 + 1.337i. Over the reals the condition is now where
the branch is real: W_0 for z >= -1/e, W_(-1) for -1/e <= z < 0, both -1
at -1/e, and no other branch anywhere. The complex condition is
unchanged.

LambertWOverTheRealsTest takes three branches at twelve real points
over the reals, and three over the complex numbers; five fail on
master. lambertw is new since 2.6.0, so no answer changes against it.

Found by work/domaincheck.

Part of #2256.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Rafael-SOWNet Rafael-SOWNet added this to the 2.7.0 milestone Oct 30, 2026
@Rafael-SOWNet Rafael-SOWNet moved this from Todo to In review in AngouriMath Oct 30, 2026
@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.71%. Comparing base (a17c310) to head (19000a3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2263      +/-   ##
==========================================
+ Coverage   86.69%   86.71%   +0.02%     
==========================================
  Files         310      310              
  Lines       67830    67833       +3     
  Branches    19683    19684       +1     
==========================================
+ Hits        58802    58821      +19     
+ Misses       4910     4894      -16     
  Partials     4118     4118              
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.26% <100.00%> (+0.02%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 40.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...nuous/Evaluation.Continuous.Arithmetics.Classes.cs 87.03% <100.00%> (+0.04%) ⬆️

... and 8 files with indirect coverage changes

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

@Rafael-SOWNet
Rafael-SOWNet merged commit 5110f4c into master Oct 30, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in AngouriMath Oct 30, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the lambertw-is-real-where-its-branch-is branch October 30, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant