Changes between Version 3 and Version 4 of Ticket #14685
- Timestamp:
- 06/07/13 10:27:02 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14685 – Description
v3 v4 1 1 Hi, 2 2 3 I found a bug in the LazyPowerSeries class of package combinat. 4 There is mistake in the computing of the approximate order of a serie. 5 A demonstration of the bug : 3 I found a bug in the LazyPowerSeries class of package combinat. There is mistake in the computing of the approximate order of a serie. A demonstration of the bug : 4 6 5 {{{ 7 6 sage: R = LazyPowerSeriesRing(QQ) … … 14 13 1 15 14 }}} 16 The good result should be 3 and not 1 (the order of the series B = x^3 is 3 not 1 )15 The good result should be 3 and not 1 (the order of the series B = x^3^ is 3 not 1 ) 17 16 18 17 Here, a patch which fix that: 18 19 19 {{{ 20 20 --- series_old.py 2013-06-08 13:48:40.490566975 +0200 … … 61 61 The bug is that the aorder is computed one time and never updated. This is because the order was assigned the first time then the condition self.order != unk becomes false and the update never comes. 62 62 63 After the patch, we obtain : 63 After the patch, we obtain : 64 64 65 {{{ 65 66 sage: R = LazyPowerSeriesRing(QQ) … … 72 73 3 73 74 }}} 74 75 75 What we expected. 76 76 77 78 77 PS : Thanks you for the commment, I tried to answer. 79