Repository navigation
Refuse factorize, nextprime, divisors, gradient, divergence and φ by name - #2453
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2453 +/- ##
==========================================
+ Coverage 86.93% 86.96% +0.03%
==========================================
Files 319 319
Lines 70760 70888 +128
Branches 20666 20676 +10
==========================================
+ Hits 61515 61651 +136
+ Misses 4966 4957 -9
- Partials 4279 4280 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…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>
Rafael-SOWNet
force-pushed
the
fix/refuse-names-and-stale-docs
branch
from
November 15, 2026 16:15
53353cc to
4797dff
Compare
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
The
<return>tag onEquationSystem.Solveis also corrected to<returns>, so its text reaches the generated docs.Full check on this commit, before that one-tag change (the build after it is 0 warnings, 0 errors): 19,881 unit tests, 0 failed; MCP 441, Terminal 69, F# 134, Interactive 19; AOT smoke 78/78; BoundCheck 0 disagreements, RootCheck 596/596, CasBench 120/121 with 0 wrong, SimpSweep 10463/10463, RuleCheck clean, CanonCheck and Confluence at their baselines.
🤖 Generated with Claude Code