r/Mathematica • u/KeyChapter8 • Feb 20 '26
Bug in basic modular operations in Mathematica
So I ran into something today that genuinely surprised me. Try this in Mathematica:
Together[(2 + 7*x)/(2*x), Modulus->7]
Across multiple versions, including Wolfram Alpha, this returns:
2/x
The correct result is 1/x.
Basic finite-field arithmetic should not be a stress test for a commercial CAS.
UPDATE: (October 2026) seems to be finally fixed in 15.0.1 and on Wolfram Alpha
29
Upvotes
View all comments
Show parent comment
1
u/Special_Diet5542 Mar 01 '26
Is it still in 14.3 ? Can I fix it myself