Skip to content

Substitution example linked from the SymPy site fails. #172

@BobKerns

Description

@BobKerns

This example (from Features/Core Capabilities/Substitution) fails:

https://www.sympygamma.com/input/?i=%28exp%28x%29+%2F+%281+%2B+exp%282x%29%29%29.subs%28exp%28x%29%2C+u%29

Error:
(exp(x) / (1 + exp(2x))).subs(exp(x), u)
can't multiply sequence by non-int of type 'method'

Reducing it to:

x.subs(x, u)

Gives the same error.

(Aging Macsyma project member here—it makes me happy to discover this project! This happened to the first thing I tried...but the second was the diophantine equation example, which redeemed itself. It's good to see people continuing to work with computer algebra systems and putting them to new uses! I came across your project via the Quantitative Economics project -> Jupyter-Book project -> here).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions