Skip to content

Doctest fix: f.subs(I==...) does not work #23964

@zimmermann6

Description

@zimmermann6

Minimal case:

sage: (I*x).subs(I==0)
I*x

Originally:

the substitute command does not work with I:

sage: f = sin(x*I)+I*x^2+cos(exp(I))
sage: f.subs(I=0)
I*x^2 + cos(e^I) + sin(I*x)

Depends on #24838

Component: calculus

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

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