Can I display a polynomial with higher order than 20?
I have a large polynomial product that I know has at least 100 terms but when I try to display it with the command mypoly.O(101) I only see an answer of the form lower_degree_stuff + + 6x^18 + 6x^19 + O(x^20)
Is there a way to tell SageMath that I really, really do want the whole thing up to the 100th degree?
Thanks for any help, especially if this question is basic (I have looked and been unable to turn up an answer, though).
What happens if you just use
mypoly
, rather thanmypoly.O(101)
? Also, what doestype(mypoly)
return?mypoly doesn't return anything; type(mypoly) returns <class 'sage.rings.power_series_poly.powerseries_poly'="">
Does it help to know that I am running SageMath through CoCalc?
What does
print(mpoly)
do? It may be helpful to provide more details or (even better, if it's possible) a minimal example displaying the behavior you're describing.I appreciate your looking into this a bit! Here's the code I have:
R.<x>=PowerSeriesRing(ZZ)
f1=1/(1-x)
f5=1/(1-x^5)
f10=1/(1-x^10)
f25=1/(1-x^25)
partition_poly=f1*f5*f10*f25
partition_poly.O(11) prints out the polynomial up to the 10th degree, as expected
partition_poly.O(101) prints out up to the 19th power as noted in original post
print(partition_poly) does exactly the same as previous line