sympy.github.com icon indicating copy to clipboard operation
sympy.github.com copied to clipboard

substitution example generates error

Open eeshugerman opened this issue 7 years ago • 1 comments

http://www.sympy.org/en/features.html, under 'Core capabilities', the example link for 'Substitution' opens SymPy Gamma and evaluates an expression which gives an error.

eeshugerman avatar Jun 21 '17 18:06 eeshugerman

I came to report this as well. The example is listed as (exp(x) / (1 + exp(2x))).subs(exp(x), u), with the error can't multiply sequence by non-int of type 'instancemethod'. When I try running this on my own system, I get a syntax error, since the 2x should be 2*x. Fixing the multiplication, it runs fine locally, but still gives an error on the website.

thomasaarholt avatar Jan 25 '20 14:01 thomasaarholt