Skip to content
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

Handle zero coefficients when converting asymptotic rings #19921

Closed
cheuberg opened this issue Jan 20, 2016 · 17 comments
Closed

Handle zero coefficients when converting asymptotic rings #19921

cheuberg opened this issue Jan 20, 2016 · 17 comments

Comments

@cheuberg
Copy link
Contributor

sage: CR.<Z> = QQ['Z']
sage: CR_mod = CR.quotient((Z^2 - 1)*CR)
sage: R.<x> = AsymptoticRing(growth_group='x^NN', coefficient_ring=CR)
sage: R_mod = R.change_parameter(coefficient_ring=CR_mod)
sage: e = 1 + x*(Z^2-1)
sage: R_mod(e)
Traceback (most recent call last):
...
ValueError: Cannot include Z^2 - 1*x with parent Exact Term Monoid
x^((Non negative integer semiring)) with coefficients in Univariate
Polynomial Ring in Z over Rational Field in Asymptotic Ring
<x^((Non negative integer semiring))> over Univariate Quotient Polynomial
Ring in Zbar over Rational Field with modulus Z^2 - 1
> *previous* ValueError: Zero coefficient 0 is not allowed in Exact
Term Monoid x^((Non negative integer semiring)) with coefficients
in Univariate Quotient Polynomial Ring in Zbar over Rational Field
with modulus Z^2 - 1.

Depends on #19528

CC: @dkrenn @behackl

Component: asymptotic expansions

Author: Clemens Heuberger, Daniel Krenn

Branch/Commit: 3c109a2

Reviewer: Daniel Krenn, Clemens Heuberger

Issue created by migration from https://trac.sagemath.org/ticket/19921

@cheuberg

This comment has been minimized.

@cheuberg
Copy link
Contributor Author

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 20, 2016

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

0159226Trac #19921: Handle zero coefficients when converting asymptotic rings

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 20, 2016

Commit: 0159226

@cheuberg
Copy link
Contributor Author

Author: Clemens Heuberger

@dkrenn
Copy link
Contributor

dkrenn commented Jan 21, 2016

@dkrenn
Copy link
Contributor

dkrenn commented Jan 21, 2016

comment:6

LGTM. I've added one commit; please cross-review and if ok, then set this ticket to positive_review.


New commits:

25e2348use ZeroCoefficientError in create_summand as well

@dkrenn
Copy link
Contributor

dkrenn commented Jan 21, 2016

Changed commit from 0159226 to 25e2348

@cheuberg
Copy link
Contributor Author

comment:7

This should depend on the new code of mutable_poset.map which allows None and is not merged yet.

@cheuberg
Copy link
Contributor Author

@cheuberg
Copy link
Contributor Author

New commits:

421e377mutable poset map: remove elements ``None``
1d28240term monoid: write change_parameter
2c37889correct a bug in change_parameter
bdcb72bwrite map_coefficients
8a71ba3Trac #19528: simplification of documentation
3c109a2Trac #19921: Merge #19528

@cheuberg
Copy link
Contributor Author

Dependencies: #19528

@cheuberg
Copy link
Contributor Author

Changed commit from 25e2348 to 3c109a2

@cheuberg
Copy link
Contributor Author

Changed author from Clemens Heuberger to Clemens Heuberger, Daniel Krenn

@cheuberg
Copy link
Contributor Author

comment:10

Replying to @dkrenn:

LGTM. I've added one commit; please cross-review and if ok, then set this ticket to positive_review.

Thank you, cross-reviewed. This is a conditional positive modulo #19528.

@cheuberg
Copy link
Contributor Author

Reviewer: Daniel Krenn, Clemens Heuberger

@vbraun
Copy link
Member

vbraun commented Jan 24, 2016

Changed branch from u/cheuberg/asy/conversion-zero-coefficient to 3c109a2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants