Opened 5 years ago

Last modified 5 years ago

#21243 new enhancement

RealSet: add methods closure, interior, boundary, is_open, is_closed

Reported by: mkoeppe Owned by:
Priority: major Milestone: sage-7.4
Component: basic arithmetic Keywords:
Cc: rws, vbraun, pbruin, tscrim Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by mkoeppe)

The intervals in a RealSet already have these methods.

It would also be nice to be able to compute closure and interior relative to a given larger RealSet.

sage: RealSet((1, 2)).closure(relative_to=RealSet((0, 2))  # wishful thinking
[1, 2)

One could also imagine that these should be methods of the real fields (such as RR) considered as a members of the category TopologicalSpaces.

Change History (1)

comment:1 Changed 5 years ago by mkoeppe

  • Cc tscrim added
  • Description modified (diff)
  • Summary changed from RealSet: add closure and interior methods to RealSet: add methods closure, interior, boundary, is_open, is_closed
Note: See TracTickets for help on using tickets.