content() inconsistencies
Christian Bauer
Christian.Bauer at Uni-Mainz.DE
Fri Jul 2 14:59:30 CEST 2004
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/
More information about the GiNaC-devel
mailing list