Skip to content

Meta-ticket: Connect Sage sets to sympy sets #31926

@mkoeppe

Description

@mkoeppe

API reference:

sympy uses properties for many things, so we probably cannot achieve direct API compatibility, put perhaps we can use the same vocabulary when it makes sense.

Existing conversions:

  • from various sympy set types to Sage SR relation expressions: sage.interfaces.sympy.sympy_set_to_list
  • RealSet._sympy_condition_ - used internally in sage.functions.piecewise

In #31938 we provide an adapter (wrapper) class
that provides the sympy API. The _sympy_ method of a Sage set can return this wrapper.

Sets would provide a foundation for an improved symbolic assumptions facility, and for representing solution sets to symbolic equations etc.

Tickets:

See also:

CC: @kliem @tscrim @EmmanuelCharpentier @isuruf

Component: geometry

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

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