Repository navigation
Move to AngouriMath 2.6.0, and read the congruence it writes with \pmod - #338
Open
Rafael-SOWNet wants to merge 1 commit into
Open
Rafael-SOWNet wants to merge 1 commit into
Rafael-SOWNet wants to merge 1 commit into
Conversation
AngouriMath 2.6.0 adds a congruence node, written a \equiv b \pmod{m}, and
AngouriMathLatexSweepTests found \pmod was an invalid command here: the only one
of the 109 nodes it checks. \pmod{m} is now LaTeX's "(mod m)" after a quad, built
from atoms that already lay out, as \Bra and \Ket are. Evaluation reads it as the
modulus of the \equiv before it, so 15625 \equiv 1 \pmod{7} evaluates to true.
\equiv without \pmod, and \pmod without \equiv, are errors.
The other 33 changed rows are AngouriMath 2.6.0 printing or answering differently:
- a variable now sorts before a function in a product (y \cot(x));
- a--a prints as a+a;
- [7, 8]/9 evaluates to [7/9, 8/9];
- d/d(x^2) of x is 1/(2x), where 2.2.0 answered 0, so (dx/d(x^2)) x y + 1 is
1 + y/2 for x != 0.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Rafael-SOWNet
requested review from
FoggyFinder,
Happypig375 and
charlesroddie
as code owners
October 22, 2026 13:25
This branch has not been deployed
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.
Moves to AngouriMath 2.6.0, published to NuGet today.
\pmod. AngouriMath 2.6.0 adds a congruence node, writtena \equiv b \pmod{m}.AngouriMathLatexSweepTests(Move to AngouriMath 2.0, which renamed Latexise to Latexize #262) found\pmodan invalid command here, the only one of the 109 nodes it checks.\pmod{m}now lays out as LaTeX's "(mod m)" after a quad, built from atoms that already lay out, as\Braand\Ketare. Evaluation reads it as the modulus of the\equivbefore it, so15625 \equiv 1 \pmod{7}evaluates to true.\equivwithout\pmod, and\pmodwithout\equiv, are errors.y \cot(x));a--aprints asa+a;[7, 8]/9evaluates to[7/9, 8/9];1/(2x)where 2.2.0 answered 0, so(dx/d(x^2)) x y + 1is1 + y/2for x ≠ 0.Against the published 2.6.0 package: Evaluation 968/968, Core 1,584/1,584 and Rendering 1,241/1,241 pass.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura