Repository navigation
Commit 5110f4c
LambertW over the reals is defined where its branch is real (#2263)
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>1 parent 6d2a960 commit 5110f4c
3 files changed
Lines changed: 64 additions & 1 deletion
File tree
- Sources
- AngouriMath/Functions/Evaluation/Evaluation.Continuous
- Tests/UnitTests/Convenience
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
764 | 767 | | |
765 | | - | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
766 | 772 | | |
767 | 773 | | |
768 | 774 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
0 commit comments