-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Extend normalize() and use it instead of Maxima in simplify_rational() #21335
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
This is implemented in Pynac master |
Dependencies: #21360 |
Changed dependencies from #21360 to none |
Dependencies: #21369 |
Author: Ralf Stephan |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
Three doctest fails in |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Minor point: "and and" should be "and". Apart from that, I don't understand why |
comment:13
Indeed the performance question was the source of some headaches to me, as well. I figured at the time consistency with Maxima behaviour was more important. Without
|
comment:15
Replying to @rwst:
I don't know exactly what either Maxima or Pynac does, but just by chance, do you think it would be okay to keep the loop but expand the denominators instead of calling |
comment:16
Replying to @mezzarobba:
This will, additionally to the two doctests above, fail this doctest:
|
comment:17
I think I see now how to resolve the three tests without factoring. Pynac's gcd needs to be a bit more aware of powers in the expression and needs to replace some of them with new symbols. This way also exponentials can be handled identically (which does not work atm). |
At the moment
normalize()
will not expand factors of fractions. If fractions are combined however, the final numerator is expanded:The alternatives are provided atm by Maxima
pynac/pynac#191
After Pynac will have implemented
normalize()
options to these effect the calls to Maxima insimplify_rational
should be replaced by the respective calls to Pynac.Depends on #21369
Depends on #21529
Component: symbolics
Author: Ralf Stephan
Branch/Commit: u/rws/noexpand_simple_options_for_ex_normalize__ @
30bc79e
Issue created by migration from https://trac.sagemath.org/ticket/21335
The text was updated successfully, but these errors were encountered: