Skip to content

Interface cases function with SymPy's piecewise #23923

@rwst

Description

@rwst

In #20191 the cases function is introduced. This ticket should interface it with SymPy's piecewise (both directions) and test with:

        sage: _ = var('y, z')
        sage: (x^y - z).integrate(y)
        -y*z + x^y/log(x)
        sage: (x^y - z).integrate(y, algorithm="sympy")  # see Trac #14694
        -y*z + cases(((log(x) == 0, y), (1, x^y/log(x))))

Depends on #20191
Depends on #23990
Depends on #24006

CC: @mforets @EmmanuelCharpentier

Component: interfaces

Author: Ralf Stephan

Branch/Commit: b261ec3

Reviewer: Emmanuel Charpentier

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions