Repository navigation
Commit 53353cc
Refuse factorize, nextprime, divisors, gradient, divergence and φ by name
Each was read as a product: factorize(360) was factorize * 360, nextprime(10) was
nextprime * 10, divisors(12) was divisors * 12, gradient(x^2) was gradient * x ^ 2,
divergence(x) was divergence * x, and φ(10) was φ * 10. The library has no node for any of
them, so each call is now refused with what can be written today: MathS.NumberTheory.Factorize
or Factorize() in C#, prime(primepi(n) + 1), divisorsigma(0, n) and divisorsigma(1, n),
jacobian([f], [x, y]), trace(jacobian(F, [x, y])), and phi(n), which is Euler's totient; ϕ,
the other glyph, is refused the same way. Each name without a bracket is still a variable.
Two documentation comments were stale. MathS.Settings.Budget said the Gröbner solver was the
only thing to honour it; the system solver's own ledger, the rewrite graph's transformations,
MathS.AreEqual and the perfect-square proof that Factorize runs and Simplify offers as a
candidate all do, and Simplify itself is not bounded by it. EquationSystem.Solve said only
that it returns null; it throws NotSufficientlySupportedException when its budget runs out.
Part of #2449 and #2182.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f439c0e commit 53353cc
13 files changed
Lines changed: 1526 additions & 1203 deletions
File tree
- Sources
- AngouriMath
- Convenience
- Core
- Antlr
- Docs/Usage
- MCP/AngouriMath.Mcp
- Tests/UnitTests/Convenience
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
64 | 86 | | |
65 | 87 | | |
66 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6571 | 6571 | | |
6572 | 6572 | | |
6573 | 6573 | | |
6574 | | - | |
6575 | | - | |
6576 | | - | |
6577 | | - | |
| 6574 | + | |
| 6575 | + | |
| 6576 | + | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
| 6580 | + | |
| 6581 | + | |
| 6582 | + | |
| 6583 | + | |
| 6584 | + | |
6578 | 6585 | | |
6579 | 6586 | | |
6580 | 6587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
722 | 733 | | |
723 | 734 | | |
724 | 735 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| |||
462 | 469 | | |
463 | 470 | | |
464 | 471 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
0 commit comments