Changes between Version 72 and Version 74 of Ticket #22928


Ignore:
Timestamp:
11/24/17 16:58:53 (2 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22928

    • Property Status changed from new to needs_review
  • Ticket #22928 – Description

    v72 v74  
    1 The library `gmpy2` support conversions by the use of special methods. In order to allow conversion of Sage objects into gmpy2 objects, we implement the following
    2 - a method `__mpz__` on Sage Integer
    3 - a method `__mpq__` on Sage Rational
    4 - a method `__mpfr__` on relevant Sage real numbers
     1The library `gmpy2` supports conversions by the use of special methods. In order to allow conversion of Sage objects into gmpy2 objects, we implement the following methods
     2- `__mpz__` on Sage Integer
     3- `__mpq__` on Sage Rational
     4- `__mpfr__` on relevant Sage real numbers
    55   - `RealNumber` (`sage.rings.real_mpfr`)
    66   - `RealDoubleElement` (`sage.rings.real_double`)
    7 - a method `__mpc__` on relevant Sage complex numbers
     7- `__mpc__` on relevant Sage complex numbers
    88   - `ComplexDoubleElement` (`sage.rings.complex_double`)
    99   - `MPComplexNumber` (`sage.rings.complex_mpc`)