Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • $\begingroup$ Thanks, but this still becomes very slow very fast for some reason. For instance on -5832. - 432. x^2 - 1728. f x^3 - 384. x^4 - 864. d1f x^4 - 1728. f^2 x^4 + 324. p^4 x^4 - 768. f x^5 - 1728. d1f f x^5 + 648. f p^4 x^5 - 85.3333 x^6 - 384. d1f x^6 - 432. d1f^2 x^6 + 144. p^4 x^6 it takes 4.7 seconds for me. (with a grid of size 2, only 5.1 with a grid of size 50, so clearly it is wasting a lot of time somewhere). The example is a small piece from what I linked, if you know somewhere else that I can upload it to where you can access it I'd be happy to. $\endgroup$ Commented Oct 23, 2018 at 15:44
  • $\begingroup$ @jansen You may consider Github. $\endgroup$ Commented Oct 23, 2018 at 16:51
  • $\begingroup$ Ok, I've changed the link to Github. $\endgroup$ Commented Oct 24, 2018 at 10:30
  • $\begingroup$ @Jansen Check my update. $\endgroup$ Commented Oct 24, 2018 at 12:40
  • $\begingroup$ Thanks, this works quite well, on the bigger example it takes about 0.25 seconds and gives a speedup of about a factor 2 (machine precision) or 4 (arbitrary precision). I really don't understand why a pattern with ⊕ is very slow when the exact same pattern with ⊗ is very fast? I've checked that if you remove all definitions except the one you commented out it is still the case, so it can't be an interplay between those definitions. It has to be something to do with the expression it's applied to then. $\endgroup$ Commented Oct 24, 2018 at 14:18