Changes between Version 3 and Version 4 of Ticket #24255
- Timestamp:
- 11/22/17 07:31:05 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24255
-
Property
Summary
changed from
Fix constant e coercion into SR
toFix Expression subclasses coercion into SR
-
Property
Summary
changed from
-
Ticket #24255 – Description
v3 v4 6 6 sage: (x*pi).subs({x*pi:e}) 7 7 e 8 9 sage: s = x.series(x,2); s 10 1*x + Order(x^2) 8 11 }}} 9 12 … … 12 15 sage: x*pi==e 13 16 e == pi*x 17 sage: x == s 18 1*x + Order(x^2) == x 14 19 }}} 15 The problem is that constants are not made into expressions immediately:20 The problem is that constants/series are subclasses of `Expression` and are not coerced/converted immediately into `Expression`: 16 21 {{{ 17 22 sage: SR(e) … … 23 28 sage: type(_) 24 29 <type 'sage.symbolic.expression.Expression'> 25 sage: x*pi==e+1-126 pi*x == e27 30 }}} 28 It seems that `e` is the only constant affected by this.