Skip to content

substitution in denominator is skipped #21071

@dkrenn

Description

@dkrenn

The following comes very unexpected

sage: ((1+x^2)/x^2).subs({x^2: 42})
43/x^2

The problem is the internal representation as

sage: ((1+x^2)/x^2).operands()
[x^2 + 1, x^(-2)]

Reported upstream as pynac/pynac#186

Depends on #22102

CC: @tscrim @dkrenn

Component: symbolics

Author: Ralf Stephan

Branch/Commit: u/rws/substitution_in_denominator_is_skipped @ 5e39b7b

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

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