By the way, if you install SymPy from conda-forge, they gmpy2 will be installed automatically. If you use conda-forge chances are you've already been using it this whole time.
Aaron Meurer On Fri, Sep 8, 2023 at 1:13 AM <[email protected]> wrote: > Dear Oscar, > > Thanks! > I installed it (I used anaconda, rather than pip), all went well. > As you predicted, I did not find any difference so far, will keep on > observing. > > Thanks again! > > Peter > > -----Original Message----- > From: [email protected] <[email protected]> On Behalf Of Oscar > Benjamin > Sent: Donnerstag, 7. September 2023 12:41 > To: [email protected] > Subject: Re: [sympy] Future of SymPy part 2: polynomials > > 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 > . > > -- > 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/000001d9e224%2401d58210%2405808630%24%40gmail.com > . > -- 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/CAKgW%3D6%2B2xM2W4KZmN9d9YrYEsxuyU70xfsKr457xEnXvgF%3D4Ng%40mail.gmail.com.
