Hi,
I am getting confused on Python 3 error message using subs:
from sympy import *
x, y = symbols('x y')
fun = cos(x) + 1
fun.subs(x,y)
--> cos(y) + 1
which is okay. It does at it should.
from sympy import *
x, y = symbols('x y')
fun2=1
fun2.subs(x,y)
--> Attribute error: 'int' object has not attribute 'subs'
What is the failure here? How to fix this? I used sympy online and it
works, but on desktop it does not. Why?
I used recently anaconda to download python 3 and other libraries etc.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/eec9cfdd-1b15-4b3d-8541-a7a2ea157b6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.