Traceback (most recent call last):
File "/tmp/sessions/c380e6d285d9328d/main.py", line 6, in <module>
Eq((r1-r3)((1-cos(theta-phi)* ddotphi-sin(theta-phi)*dotphi**2)-2*(r1-r2)*ddottheta,g*sin(theta)))],[ddottheta,ddotphi]))
TypeError: 'Add' object is not callable
what am I missing here?
from sympy import *
a,b,r1, r2, r3, m1,m2,theta,phi,dottheta, dotphi, ddottheta, ddotphi, g=symbols('a b r1 r2 r3 m1 m2 theta phi dottheta dotphi ddottheta ddotphi g')
print(solve([Eq((m1+m2)*(2*(r1-r3)*ddotphi+g*sin(phi))-m2*(r1-r2)*((1-cos(theta-phi))* ddottheta+sin(theta-phi)*dottheta*2),0),
Eq((r1-r3)((1-cos(theta-phi)* ddotphi-sin(theta-phi)*dotphi**2)-2*(r1-r2)*ddottheta,g*sin(theta)))],[ddottheta,ddotphi]))