[sympy] Physics : Improving Control Module GSOC'22

2022-04-04 Thread Anurag Surendra Bhat (B20CS097)
Hello SymPy community, As I had mailed a few days ago that I have started to draft a proposal to improve and expand the control module in SymPy . You can go through this discussion for the ideas ( https://groups.google.com/u/1/g/sympy/c/WpODTnY7Fh8 ). I have completed it upto a good extent, so I

[sympy] Re: Physics : Improving Control Module GSOC'22

2022-04-04 Thread Anurag Surendra Bhat (B20CS097)
Dear Jason, I would request you and other mentors / maintainers of the physics module to have a look into it . I would be glad to have your reviews and suggestions. Thanking You, Anurag Bhat . On Monday, April 4, 2022 at 12:52:25 PM UTC+5:30 Anurag Surendra Bhat (B20CS097) wrote: > Hello Sym

Re: [sympy] Re: Physics : Improving Control Module GSOC'22

2022-04-04 Thread Jason Moore
Anurag, My general advice is to fix what is there, make it robust (by demonstrating on a large set of example problems), and document it extensively instead of adding new features. To gain users, it is better to have a small number of features that work really well over a larger number of features

[sympy] TypeError: cannot unpack non-iterable Particle object

2022-04-04 Thread n doherty
Hi, Looking for some help if possible. I was recently trying to get the equations of motion of a double pendulum via SymPy. When I used "kanes_equations" to obtain Fr and Fr* I got the above TypeError message. I have the loads and the bodies contained in lists which are input into the kanes_e

Re: [sympy] TypeError: cannot unpack non-iterable Particle object

2022-04-04 Thread Peter Stahlecker
I have done all sorts of pendulae, single, double, triple. If you could send your code, maybe I could find a mistake. Peter On Mon 4. Apr 2022 at 13:00, n doherty wrote: > Hi, > Looking for some help if possible. I was recently trying to get the > equations of motion of a double pendulum vi

Re: [sympy] TypeError: cannot unpack non-iterable Particle object

2022-04-04 Thread n doherty
Thanks very much Peter. I hope I'm not making an error but would welcome you finding one if I am. I'm getting the same error in tutorial examples so suspect it's an error with a new version of sympy or python, or something specific to my setup. I'm using python 3.8 and sympy 1.8. I get the

Re: [sympy] TypeError: cannot unpack non-iterable Particle object

2022-04-04 Thread Peter Stahlecker
Your loads were incorrect: Try this: loads = [ (p1, F_grav_1), (p2, F_grav_2) ] When I changed this in your program, it worked, or at least there was no error. You have to give the points where the forces ‚attack‘, as tuples. Otherwise, hwo would sympy.physics.mechanics ‚know‘, where the forces

Re: [sympy] TypeError: cannot unpack non-iterable Particle object

2022-04-04 Thread Peter Stahlecker
In addition, you probably have a typo in this: P1.set_ang_vel(A, omega1 * A.z) P2.set_ang_vel(P1, omega*1* * P1.z) It should probably be P2.set_ang_vel(P1, omega*2* * P1.z) With this change, it would calculate some rhs, like: rhs = kanes.rhs() Peter On Mon 4. Apr 2022 at 15:25 Peter Stahlec

Re: [sympy] TypeError: cannot unpack non-iterable Particle object

2022-04-04 Thread n doherty
Thanks very much Peter - that worked On Monday, 4 April 2022 at 14:33:22 UTC+1 peter.st...@gmail.com wrote: > In addition, you probably have a typo in this: > > P1.set_ang_vel(A, omega1 * A.z) > P2.set_ang_vel(P1, omega*1* * P1.z) > > It should probably be > > P2.set_ang_vel(P1, omega*2* * P1.z)

Re: [sympy] TypeError: cannot unpack non-iterable Particle object

2022-04-04 Thread Peter Stahlecker
Most welcome! On Mon 4. Apr 2022 at 15:45, n doherty wrote: > Thanks very much Peter - that worked > > On Monday, 4 April 2022 at 14:33:22 UTC+1 peter.st...@gmail.com wrote: > >> In addition, you probably have a typo in this: >> >> P1.set_ang_vel(A, omega1 * A.z) >> P2.set_ang_vel(P1, omega*1* *

[sympy] GSoC : Improving Polynomial GCD and Univariate Polynomials over Algebraic Structures

2022-04-04 Thread kevin andre
email : ndjeme...@gmail.com Greeting to the SymPy Community, My name is NYEMB NDJEM EONE ANDRE KEVIN, I desire to contribute in Improving the high priority Polynomial GCD and the mathematics Univariate Polynomials Over Algebraic Structures. Please, I desire more information about what is actua

Re: [sympy] Issue in the ODE dsolve module (GSOC)

2022-04-04 Thread kang li
Sorry for the typo, the equation is -B(t)^2 + B'(t) +1 =0. And the picture is the right. The problem still remians. On Monday, April 4, 2022 at 12:46:04 AM UTC+1 Oscar wrote: > You have a sign mismatch in your equation (+-Bt). > > -- > Oscar > > On Sun, 3 Apr 2022 at 23:39, kang li wrote: > >>

Re: [sympy] Issue in the ODE dsolve module (GSOC)

2022-04-04 Thread kang li
Sorry for the typo, the equation is -B(t)^2 + B'(t) +1 =0. And the picture is right. The problem still remains. On Monday, April 4, 2022 at 12:46:04 AM UTC+1 Oscar wrote: > You have a sign mismatch in your equation (+-Bt). > > -- > Oscar > > On Sun, 3 Apr 2022 at 23:39, kang li wrote: > >> The