-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
coefficients() function more consistent between Expressions and polynomial rings #17922
Comments
Changed keywords from coeffs to coeffs, rings, polynomials, expression, symbolic |
comment:2
Have list comprehension tastiness with
In #17518 we started being more consistent by deprecating |
comment:3
That works for polynomial rings, are there plans to add that to sage.symbolic.expression.Expressions? |
comment:4
Clarified the ticket description. |
This comment has been minimized.
This comment has been minimized.
comment:5
Replying to @sagetrac-JoalHeagney:
That would not be difficult (in comparison). If you expect it then to behave identically you will be disappointed however, because symbolics have no default generator (although
so you could never have true polymorphism. |
The different behaviour between the two rings consists of
coefficients(sparse=True)
(which is default) method returns a list of pairs inSR
, and a list inPolynomialRing
,Expression.dict()
does not exist.Example:
Gives:
And
gives
But:
returns
and
returns
I'd prefer if these two functions returned the same format, preferably the Expression format, as having access to the index allows list comprehension tastiness.
Component: algebra
Keywords: coeffs, rings, polynomials, expression, symbolic
Issue created by migration from https://trac.sagemath.org/ticket/17922
The text was updated successfully, but these errors were encountered: