Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: PolynomialQuotient slow
Replies: 3   Last Post: Jan 7, 2013 12:35 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Roman Pearce

Posts: 118
Registered: 1/25/05
PolynomialQuotient slow
Posted: Dec 31, 2012 7:45 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Something seems wrong here with the performance of PolynomialQuotient. Is there blowup because the leading coefficient in x is a polynomial? Also it seems slower in Mathematica 9 versus v8.

d = 5
f = Expand[ ((1+x)*(1+y)*(1+z))^d + 1 ];
g = Expand[ ((1-x)*(1-y)*(1-z))^d + 1 ];
AbsoluteTiming[ p = Expand[ f g ]; ]
AbsoluteTiming[ q = PolynomialQuotient[p, f, x]; ]
AbsoluteTiming[ P = Factor[ p ]; ]

What is the preferred method for (exact) division of polynomials? On this example I tried Cancel[ p/f ] and it works fine, but on other problems it is faster to use PolynomialQuotient. Suggestions?




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.