Changes between Initial Version and Version 1 of Ticket #15355


Ignore:
Timestamp:
11/05/13 12:35:15 (8 years ago)
Author:
dkrenn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15355 – Description

    initial v1  
    11We have
    22{{{
    3 sage: x+CIF(RIF(-2,2), 0)
     3sage: x + CIF(RIF(-2,2), 0)
    44x
    55}}}
    66and
    77{{{
    8 sage: x + CIF(RIF(-2,2),RIF(-2,2))
     8sage: x + CIF(RIF(-2,2), RIF(-2,2))
    99x
    1010}}}
    1111which are wrong representation strings. Anyhow, the result themselves are correct since, for example, we have
    1212{{{
    13 sage: z = (x+CIF(RIF(-2,2),RIF(-2,2)))
     13sage: z = (x + CIF(RIF(-2,2),RIF(-2,2)))
    1414sage: z - x
    15150.?e1 + 0.?e1*I
     
    1818In contrast, the following things work:
    1919{{{
    20 sage: x+RIF(-2,2)
     20sage: x + RIF(-2,2)
    2121x + 0.?e1
    22 sage: x+CIF(RIF(3.14,3.15), RIF(3.14, 3.15))
     22sage: x + CIF(RIF(3.14,3.15), RIF(3.14, 3.15))
    2323x + 3.15? + 3.15?*I
    24 sage: CIF(RIF(-2,2),RIF(-2,2))
     24sage: CIF(RIF(-2,2), RIF(-2,2))
    25250.?e1 + 0.?e1*I
    26 sage: x+CIF(RIF(3.14,3.15), 0)
     26sage: x + CIF(RIF(3.14,3.15), 0)
    2727x + 3.15?
    2828}}}