Repository navigation
Commit 4411d02
An identity only the simplifier shows is solved to every value (#1562)
`sqrt(x)^2 = x` and `sin(x)^2 + cos(x)^2 = 1` reached Newton's method unread:
their residual is zero wherever it is evaluated, so every start of its grid
converged at once, and each was kept, 191 numbers for an equation every number
satisfies. Where every analytical route has declined, the equation is simplified
once before Newton's method is tried, and an unconditional zero is answered with
CC, as `x + 1 = x + 1` already was. A zero with a condition goes on to Newton's
method as before: `(x^2 - 1)/(x - 1) - x - 1` is zero for every x but 1.
The unit tests pass (net10.0, 13333), every target builds, and the allocation
gate passes.
Part of #1420.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent ddade7c commit 4411d02
3 files changed
Lines changed: 36 additions & 0 deletions
File tree
- Sources
- AngouriMath/Functions/Continuous/Solvers/EquationSolver
- Tests/UnitTests/Algebra/SolveTest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1730 | 1745 | | |
1731 | 1746 | | |
1732 | 1747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
360 | 370 | | |
361 | 371 | | |
362 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
34 | 45 | | |
35 | 46 | | |
36 | 47 | | |
| |||
0 commit comments