Changes between Version 20 and Version 30 of Ticket #17671


Ignore:
Timestamp:
01/28/15 18:05:25 (5 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17671

    • Property Dependencies changed from #17673, #17675 to #17675
    • Property Commit changed from c6db5f832b23d29026019de5306472a25e591279 to 2e0d79e1c767b471dc143ab55cd5490de342bae0
  • Ticket #17671 – Description

    v20 v30  
    17172. We fix the `xgcd` for trivial cases in `rings.polynomial.polynomial_element_generic.Polynomial_generic_field` in order that `gcd` and `xgcd` agree for them.
    18183. We introduce a generic test `_test_gcd_vs_xgcd` in the category `PrincipalIdealDomains` to ensure the compatibility of `gcd` and `xgcd`.
    19 4. Modify the previous behavior for real numbers (which was present because of mysterious backward compatibility reasons)
     194. Modify the previous behavior for real numbers
    2020  {{{
    2121  sage: gcd(2.0, 4.0)
     
    2424  Integer Ring
    2525  }}}
    26   Now we have
     26  The only difference is that now, Sage returns floating point with the same parent
    2727  {{{
    2828  sage: gcd(2.0, 4.0)
    29   1.00000000000000
     29  2.00000000000000
    3030  sage: gcd(2.0, 4.0).parent()
    3131  Real Field with 53 bits of precision
    3232  }}}
    33 
     33  And the same kind of behavior will also hold for lcm and xgcd.
    3434
    3535Note: