Skip to content

representation of CIF-element plus SR-element #15355

Closed
@dkrenn

Description

@dkrenn

We have

sage: x + CIF(RIF(-2,2), 0)
x

and

sage: x + CIF(RIF(-2,2), RIF(-2,2))
x

which are wrong representation strings. Anyhow, the result themselves are correct since, for example, we have

sage: z = (x + CIF(RIF(-2,2),RIF(-2,2)))
sage: z - x
0.?e1 + 0.?e1*I

In contrast, the following things work:

sage: x + RIF(-2,2)
x + 0.?e1
sage: x + CIF(RIF(3.14,3.15), RIF(3.14, 3.15))
x + 3.15? + 3.15?*I
sage: CIF(RIF(-2,2), RIF(-2,2))
0.?e1 + 0.?e1*I
sage: x + CIF(RIF(3.14,3.15), 0)
x + 3.15?

Component: symbolics

Keywords: SR, CIF, representation, sd67

Author: Daniel Krenn

Branch/Commit: c03f6bd

Reviewer: Ralf Stephan

Issue created by migration from https://trac.sagemath.org/ticket/15355

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions