Hi,
Is this helping?

sage: var('a,b,z')
(a, b, z)
sage: f=a*z+i*b*z^2
sage: f.norm()
b*z^2*conjugate(b)*conjugate(z)^2 - I*a*z*conjugate(b)*conjugate(z)^2
+ I*b*z^2*conjugate(a)*conjugate(z) + a*z*conjugate(a)*conjugate(z)
sage: f.norm().full_simplify()
b^2*z^4 + a^2*z^2
sage: f.norm().factor()
(b^2*z^2 + a^2)*z^2

On Mar 12, 6:46 pm, Michael Beeson <[email protected]> wrote:
> sage: var('z'); var('a');var('b');
> sage: F = a*z + i*b*z^2
> sage:
>
> Now  F.norm() or something should give me  (a*z)^2 + (b*z^2)^2,  but I
> can't find a command to do that.
> I want to do this when F is a polynomial of degree 6 with complex
> rational coefficients to eliminate i and produce
> a polynomial of degree 12 with rational coefficients.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to