Skip to content

[verifier] Use simplify in addition to minimal_polynomial in SymPy and fix input format for Rational#223

Merged
xumingkuan merged 2 commits intomasterfrom
sympy-fix
Oct 20, 2025
Merged

[verifier] Use simplify in addition to minimal_polynomial in SymPy and fix input format for Rational#223
xumingkuan merged 2 commits intomasterfrom
sympy-fix

Conversation

@xumingkuan
Copy link
Copy Markdown
Collaborator

@xumingkuan xumingkuan commented Oct 20, 2025

Fix #221

Sometimes SymPy doesn't like sympy.minimal_polynomial for expressions with sin and cos. It's still faster than sympy.simplify, so I added try-except clauses.

Also fixes the input format for Rational to filter out the " at the beginning and the end of a number.

@xumingkuan xumingkuan changed the title [verifier] Use simplify in addition to minimal_polynomial in SymPy [verifier] Use simplify in addition to minimal_polynomial in SymPy and fix input format for Rational Oct 20, 2025
@xumingkuan xumingkuan merged commit 0ad2bbb into master Oct 20, 2025
2 checks passed
@xumingkuan xumingkuan deleted the sympy-fix branch October 20, 2025 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to run test_optimize.

1 participant