A performance improvement for speeding up quadratic and cubic discriminants (issue #30517)
30 views
Skip to first unread message
Chris Ozols
unread,
Nov 15, 2026, 7:15:39 AM (5 days ago) Nov 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
Hi as it is right now on the main branch it's quite slow in these situations. I've made a fork of it to help improve it, it speeds up the examples from issue #30517 by about 685x and 391x, with a 189x geometric-mean speedup across 13 benchmarks. It just checks for these situations and does the direct quadratic and cubic discriminant formulas instead of the general resultant calculation to help out on these. Its +28 lines, +105 total including tests.