-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Simplification of factorials and binomial coefficients is not very good #6636
Comments
comment:2
A related discussion on sage-devel is http://groups.google.com/group/sage-devel/browse_thread/thread/58db110fc55b11e5. The lack of simplification is a bug, or at least very poorly exposed functionality, in Maxima. One would think that simplify would include this... but instead one needs to expose Maxima's minfactorial:
This should not be hard to add to simplify_full, though. Also note that the last issue is addressed by #6197. |
comment:3
The following patch should fix all of the issues on this ticket - Maxima has quite a bit of simplifying capability, but prefers to leave things unsimplified for further processing, as a rule. See examples for what now works. I have also changed simplify_full() to take this in, and hope that simplification of binomials and factorials first is best. This needs the patch at #6197 to function properly, since otherwise binomial isn't recognized by sage as something it can pass to Maxima. |
Attachment: trac_6636-factorial-simplify.patch.gz Needs #6197 |
comment:4
This has been slightly changed because the doctest fix here actually belonged in #6197. Otherwise still ready for review! |
comment:5
Looks good to me. We might want to improve simplify_full so that we don't have 4 round trips to Maxima (convert to maxima, run all of the simplification commands on the MaximaElement, and then finally convert back to an Expression.) |
Author: Karl-Dieter Crisman |
Reviewer: Mike Hansen |
comment:6
That makes a lot of sense. Once this is merged, do you mind opening a ticket on that? |
comment:7
Sure thing. |
Merged: Sage 4.1.2.alpha2 |
Maple can simplify all but the first of the following examples:
returns
Sage can simplify only the first:
returns
CC: @jbandlow @burcin @mwhansen
Component: symbolics
Keywords: symbolics, factorials, binomial coefficients
Author: Karl-Dieter Crisman
Reviewer: Mike Hansen
Merged: Sage 4.1.2.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/6636
The text was updated successfully, but these errors were encountered: