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
coeff(f,x*y) does not work #9505
Comments
comment:1
PS: I'm sorry if this is a duplicate. The trac search for "coeff" gives 295 entries! |
Changed keywords from none to pynac |
comment:2
I'm switching the component to It seems that we inherited this behavior from GiNaC:
I will report this to the ginac-list. |
Stopgaps: #12699 |
comment:4
Since I don't know how to fix this, at least I can point out some related facts. Maxima does exactly the same thing as GINAC (and Sage):
Maple raises an error in this case:
Mathematica does what you expect:
Sage multivariate polynomials (hence Singular) do what you expect:
|
comment:5
a possible fix would be that
Paul |
comment:6
We might need to expand the expression before doing recursive calls to
Compare to MMA:
|
Author: Paul Zimmermann |
comment:8
Attachment: trac_9505.patch.gz attached is a temporary fix that calls coeff in turn for each term Paul |
Branch: u/rws/ticket/9505 |
Commit: |
comment:11
Patch applies cleanly, looks good, tests OK in symbolics/ Not sure if the stopgap is still necessary. My tests were satisfying but hey. New commits:
|
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
Reviewer: Ralf Stephan |
comment:15
Documentation does not build
|
comment:16
sorry with the change to git I don't know how yet how to submit a patch, thus I won't be able to work on this in the near future. Paul |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
Changed branch from u/rws/ticket/9505 to |
* develop: (100 commits) Updated Sage version to 6.2.beta4 added documentation, patchlevel bump trac sagemath#15894 modif of two warnings delete cruft from the guava package trac sagemath#15893 review patch trac sagemath#15894 another backward change trac sagemath#15894 changin back the category names trac #15xxx proper names should start by a capital letter Fix changelog entry for ell_wp trac sagemath#15893: graphs.petersen_family Fixes to code from sagemath#9505. Fix the banner displayed by sage -h trac sagemath#15466: remove dead import trac sagemath#15795 line wrap trac sagemath#15795 redone with ( ::) Fraction to power series: doctests Fraction to power series conversion when the fraction coerces into the base ring 15698: Allow construction of power series from fractions Create *unevaluated* integrals when converting sage integrals to sympy Use evaluate=False in SympyConverter too ...
The following is ok:
However the following is not:
Component: symbolics
Keywords: pynac
Stopgaps: #12699
Author: Paul Zimmermann
Branch/Commit:
06b3fc1
Reviewer: Ralf Stephan
Issue created by migration from https://trac.sagemath.org/ticket/9505
The text was updated successfully, but these errors were encountered: