Should be a * after (r1-r3).

Eq((r1-r3)*((1-cos(theta-phi)* ddotphi-sin(theta-phi)*dotphi*
*2)-2*(r1-r2)*ddottheta,g*sin(theta)))],[ddottheta,ddotphi]))

BR Oscar

Den fre 5 nov. 2021 15:00muhammad ramadani fatsey <fats...@gmail.com> skrev:

> 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]))
>
>
>
> --
> 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 sympy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/72b1f521-8147-4a8a-bcee-201a781dc9fdn%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/72b1f521-8147-4a8a-bcee-201a781dc9fdn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAFjzj-LHt3jr0yQUAvxJiEpLPG1ZjfCCJWOfPiw%3D7FPnaQ%3DvtA%40mail.gmail.com.

Reply via email to