Changes between Initial Version and Version 11 of Ticket #10147
- Timestamp:
- 03/14/21 20:56:47 (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10147
-
Property
Status
changed from
new
toneeds_review
-
Property
Authors
changed from
to
Vincent Delecroix
- Property Cc jason added
-
Property
Summary
changed from
Inconsistent behaviour of p.roots(ring=CC) for p(x) in QQ['y']['x'] (incl. crashing)
toconversions of constant polynomials
-
Property
Branch
changed from
to
u/vdelecroix/10147
-
Property
Milestone
changed from
sage-5.11
tosage-9.4
-
Property
Commit
changed from
to
4c7a3c3066ed34c65a22d722aa9c47e717bf6c6e
-
Property
Status
changed from
-
Ticket #10147 – Description
initial v11 1 Many conversions of constant polynomials fail 2 {{{ 3 sage: CC(QQ['x']['y'](2/3)) 4 Traceback (most recent call last): 5 ... 6 TypeError: unable to coerce to a ComplexNumber: 7 <class 'sage.rings.polynomial.polynomial_element.Polynomial_generic_dense'> 8 }}} 9 As a consequence, some root computations are not available 10 {{{ 11 sage: R.<x> = QQ['y'][] 12 sage: (-x+1).roots(ring=CC) 13 [(1.00000000000000, 1)] 14 sage: (-1/2*x+1).roots(ring=CC) 15 Traceback (most recent call last): 16 ... 17 TypeError: unable to coerce to a ComplexNumber: 18 <class 'sage.rings.polynomial.polynomial_element.Polynomial_generic_dense'> 19 }}} 20 (this used to crash on older version of !SageMath, see below). 21 22 ---------------------------------------------------------------- 23 Original report on previous version of sage 24 1 25 `p.roots(ring=CC)` where `p` is an element `QQ['y']['x']` whose coefficient do not depend on `y` leads to several different errors depending on the value of p. I guess there are in fact several distinct issues. The final crash might be related to #9826. 2 26 … … 7 31 | Type notebook() for the GUI, and license() for information. | 8 32 ---------------------------------------------------------------------- 9 sage: R.<x> = QQ['y'][]10 sage: (-x+1).roots(ring=CC)11 [(1.00000000000000, 1)]12 sage: (-1/2*x+1).roots(ring=CC)13 33 ERROR: An unexpected error occurred while tokenizing input 14 34 The following traceback may be corrupted or invalid