Changes between Version 3 and Version 4 of Ticket #14685


Ignore:
Timestamp:
06/07/13 10:27:02 (8 years ago)
Author:
MatthieuDien
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14685 – Description

    v3 v4  
    11Hi,
    22
    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 :
     3I 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
    65{{{
    76sage: R = LazyPowerSeriesRing(QQ)
     
    14131
    1514}}}
    16 The good result should be 3 and not 1 (the order of the series B = x^3 is 3 not 1 )
     15The good result should be 3 and not 1 (the order of the series B = x^3^ is 3 not 1 )
    1716
    1817Here, a patch which fix that:
     18
    1919{{{
    2020--- series_old.py       2013-06-08 13:48:40.490566975 +0200
     
    6161The 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.
    6262
    63 After the patch, we obtain :
     63After the patch, we obtain :
     64
    6465{{{
    6566sage: R = LazyPowerSeriesRing(QQ)
     
    72733
    7374}}}
    74 
    7575What we expected.
    7676
    77 
    7877PS : Thanks you for the commment, I tried to answer.
    79