Skip to content

allow RealSet construction from RealInterval #17791

Open

Description

@rwst

The current restriction makes reuse of RealIntervals difficult and makes no sense anyway.

sage: ri=RealInterval(10,11)
sage: RealSet(ri)
---------------------------------------------------------------------------
/home/ralf/sage/local/lib/python2.7/site-packages/sage/sets/real_set.pyc in __classcall__(cls, *args)
    634                 intervals.extend(arg._intervals)
    635             else:
--> 636                 raise ValueError(str(arg) + ' does not determine real interval')
    637         intervals = RealSet.normalize(intervals)
    638         return UniqueRepresentation.__classcall__(cls, intervals)

ValueError: 11.? does not determine real interval

Not to be confused with #17799 which is about sage.sets.real_set.RealInterval.

CC: @mkoeppe

Component: basic arithmetic

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

Activity

  1. added this to the sage-6.5 milestone on Feb 17, 2015
  2. rwst commented on Feb 18, 2015

    @rwst
    Author
  3. modified the milestones: sage-6.5, sage-6.6 on Feb 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions