Skip to content

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

@mkoeppe

Description

@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.

Depends on #31880

CC: @rwst @vbraun @pjbruin @tscrim @mjungmath @yuan-zhou

Component: basic arithmetic

Author: Matthias Koeppe

Branch/Commit: 9d41f0e

Reviewer: Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions