When I run:
sage: q = QuadraticForm(ZZ,2,[3,2,5])
sage: q.polynomial()
6*x0^2 + 4*x0*x1 + 10*x1^2
I would expect to get half of this result, which is the quadratic form
as a polynomial. The doc tests say this is what the behavior should
be, but I don't understand why. Is this actually the
On Feb 24, 2012, at 08:04 , Jacob Hicks wrote:
When I run:
sage: q = QuadraticForm(ZZ,2,[3,2,5])
sage: q.polynomial()
6*x0^2 + 4*x0*x1 + 10*x1^2
I would expect to get half of this result, which is the quadratic form
as a polynomial. The doc tests say this is what the behavior should
Justin,
I don't think that is the issue here: you are referring to the debate
between using a,2*b,c as coefficeints rather than a,b,c. But here
*all* the coefficients have been doubled.
Note that we also have
sage: BinaryQF([1,2,3])
x^2 + 2*x*y + 3*y^2
john
On 24 February 2012 16:04, Jacob
On Feb 24, 2012, at 09:49 , John Cremona wrote:
I don't think that is the issue here: you are referring to the debate
between using a,2*b,c as coefficeints rather than a,b,c. But here
*all* the coefficients have been doubled.
I haven't looked at this code in detail yet, but I'm pretty sure