-
Notifications
You must be signed in to change notification settings - Fork 0
Bug/fix inappropriate symbol and ! for factorial #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
m-messer
merged 15 commits into
main
from
bug/fix-inappropriate-symbol-and-!-for-factorial
May 19, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
255655d
Updated to Python 3.12
m-messer ccd621b
Handle infinity Unicode symbol and fix infinite value comparison
m-messer b442d0b
Handled exceptions for is_infinite checks during symbolic expression …
m-messer 807556f
Merge branch 'main' into feature/python312
m-messer f3cb9bf
Updated sympy to 1.13
m-messer b5b4163
Updated sympy to 1.14 and mpath to 1.4.1
m-messer 10bc2fb
Added parametric factorial and double factorial tests; implemented wa…
m-messer 99ca088
Update CI to use Python 3.12
m-messer ebf8c73
Changed mpmath version
m-messer 02003e7
Merge branch 'main' into feature/python312
m-messer aa6dcfe
Switched Dockerfile base image to apt package manager for Git install…
m-messer e583225
Switched to use dnf
m-messer 29775c9
Added find to installed requirements
m-messer 26b2949
Set PYTHONPATH in Dockerfile and updated CMD entrypoint format
m-messer 4606471
Merge branch 'feature/python312' into bug/fix-inappropriate-symbol-an…
m-messer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| pydot | ||
| typing_extensions | ||
| mpmath==1.2.1 | ||
| sympy==1.12 | ||
| mpmath==1.3.0 | ||
| sympy==1.14 | ||
| antlr4-python3-runtime==4.7.2 | ||
| git+https://github.com/lambda-feedback/latex2sympy.git@master#egg=latex2sympy2 |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment from Phil Ramsden after I asked him about this:
"I'm not speaking here as a mathematician exactly, but as someone who's written this kind of code for METRIC back in the day! The rationale for comparing the difference to zero is that zero is unambiguously "simpler" than almost any expression equivalent to it, and is therefore a likely end point for any chain of simplification. By contrast, it's possible to imagine (and not all that hard to concoct) examples of expressions that are algebraically equivalent but don't simplify to the same thing.
However, there are, potentially, several pitfalls with "compare difference to zero". Infinity is one of them, as there's no well-defined difference operation for infinities. A slightly different class of issue arises where the standard difference operation on equivalent objects exists all right, but yields something other than zero, such as the zero vector or (perhaps, depending on how difference is set up) the empty set. So "compare difference to zero" is not a panacea, and should only really be used when comparing symbolic expressions that represent scalars of some sort."