2 Jul
2004
2 Jul
'04
2:59 p.m.
Hi! On Fri, Jul 02, 2004 at 11:31:36AM +0200, Ralf Stephan wrote:
cout << (10*x/2+ex(15)/3).content(x) << endl;
But that's 5x+5...? Anyway, content() and primpart() in GiNaC currently only work correctly for polynomials in Z[x]. But your Pari results are correct. The content of a polynomial in Q[x] should be calculated in a way that the primitive part is a polynomial in Z[x] with content 1. Bye, Christian -- / Physics is an algorithm \/ http://www.uni-mainz.de/~bauec002/