SymPy uses a cache to store results of computations so that you don't have expend much computational effort when doing repetitions of computations. You can manually clear that cache if you want using the function you show.
Jason moorepants.info +01 530-601-9791 On Wed, Mar 2, 2016 at 8:16 AM, <[email protected]> wrote: > What is the exact function of the clear? > Could someone explain to me, Thankful. > > from sympy import * > k=factorint(13**10**6) > cache.clear_cache() > print (k) > Ps; Google Translate > > Em sexta-feira, 3 de setembro de 2010 16:22:34 UTC-3, klmn escreveu: >> >> Wow, what a fast and exact answer! clear_cache does the job. Thank you >> Øyvind! >> >> > What do you mean by "force garbage collection"? >> gc.collect() >> >> Regards, >> Konstantin >> > -- > 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 post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/446759f5-1b20-49bb-9a49-741aa892ebf5%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/446759f5-1b20-49bb-9a49-741aa892ebf5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1AhneeRKgWBwfkhCRusfKpUofowFSQAm9VQ-QiV7L9CAew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
