On Thu, 7 Sept 2023 at 11:14, <[email protected]> wrote: > > Dear Oscar, > > While 99% is way above my head (I studied engineering 40+ years ago), it is > fascinating reading! > I had no idea, how much 'math' was in sympy. > > In your post you write: > > if gmpy2 is installed then SymPy will use it and will be a lot faster for > some operations but with no other observable change in behaviour. > > I only use sympy through symy.physics.mechanics, to pass my time doing > simulations, and I do it on Jupyter notebook. > Would gmpy2 potentially speed up the formation of Kane's equation of motion?
It is very easy to install gmpy2 (pip install gmpy2) to see if it does speed anything up. I don't think that the mechanics module explicitly uses any of the low-level polynomial code so the question would be whether something like cancel or factor is being used somewhere. My expectation is that things like that would be avoided in mechanics. The next post will talk about matrices which is more relevant for the mechanics module although the matrices would be matrices of polynomials so having fast polynomials also makes a big difference to linear algebra. This would be very relevant to our previous discussion here: https://github.com/sympy/sympy/issues/24679 -- Oscar -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxQWcQNG9Fyb6_aZx4jOOZKjR11RN7mTfppSGdoVLns_MQ%40mail.gmail.com.
