Skip to content

Substitutions inside piecewise functions don't work #22102

@rwst

Description

@rwst

Not implemented at the moment

sage: f = piecewise([((0,1), x^2), ([-1,0], -x)], var=x);
sage: f.subs(x=-1)
1
sage: f.subs(x=y)
...
ValueError: substituting the piecewise variable must result in real number

Component: symbolics

Author: Ralf Stephan

Branch/Commit: u/rws/substitutions_inside_piecewise_functions_don_t_work @ 98cab8b

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

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