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

multipolynomial __call__ not consistent #5544

Open
robertwb opened this issue Mar 17, 2009 · 2 comments
Open

multipolynomial __call__ not consistent #5544

robertwb opened this issue Mar 17, 2009 · 2 comments

Comments

@robertwb
Copy link
Contributor

sage: parent(RR['x,y'].gen(1)(0,CC.0))
Complex Field with 53 bits of precision
sage: parent(RR['x,y'](0)(0,0))
Integer Ring
sage: parent(RR['x,y'](0)(0,CC.0))
Integer Ring
sage: parent(RR['x,y'](1)(0,CC.0))
Real Field with 53 bits of precision

sage: parent(QQ['x,y'](1)(0,CC.0))
Rational Field
sage: parent(QQ['x,y'](0)(0,0))
Rational Field
sage: parent(QQ['x,y'](0)(0,CC.0))
Rational Field
sage: parent(QQ['x,y'].gen(1)(0,CC.0))
Complex Field with 53 bits of precision

The result should not depend on the specific polynomial, only on its parent and the parent of the inputs.

Univariate ones get it right:

sage: sage: parent(RR['x'](0)(0))
Real Field with 53 bits of precision
sage: sage: parent(RR['x'](0)(CC.0))
Complex Field with 53 bits of precision

Component: algebra

Stopgaps: todo

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

@robertwb robertwb added this to the sage-5.11 milestone Mar 17, 2009
@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Mar 17, 2009

comment:1

According to this definition, there are bugs in univariate polynomials as well:

sage: parent(QQ['x'](0)(1))
Integer Ring
sage: parent(QQ['x'].gen(0)(1))
Rational Field

@aghitza aghitza changed the title multipolynomial __call__ not consistant multipolynomial __call__ not consistent Jul 11, 2009
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@sagetrac-jakobkroeker
Copy link
Mannequin

sagetrac-jakobkroeker mannequin commented Aug 19, 2015

Stopgaps: todo

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
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