sagemath / sage

Main repository of SageMath. Now open for Issues and Pull Requests.
https://www.sagemath.org
Other
1.2k stars 413 forks source link

bug in __contains__ for polynomial rings over ZZ #247

Closed ghost closed 17 years ago

ghost commented 17 years ago
age: R.<x,y,z,w> = ZZ['x,y,z,w']
sage: i = ideal(x^2 + y^2 - z^2 - w^2, x-y)
sage: j = i^2
sage: j.groebner_basis()
[y^2 - 2*x*y + x^2, y*w^2 + y*z^2 - 2*y^3 - x*w^2 - x*z^2 + 2*x*y^2, w^4 + 2*z^2*w^2 + z^4 - 4*y^2*w^2 - 4*y^2*z^2 + 4*y^4]
sage: y^2 - 2*x*y + x^2 in j
False
sage: 0 in j
False

The last two lines are WRONG!!

Component: basic arithmetic

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

malb commented 17 years ago
comment:2

fixed in r2808

williamstein commented 17 years ago

Changed reporter from TimothyClemans to William Stein