Hi,

On Wed, Feb 25, 2009 at 10:24 AM, Fall In Love with Sage
<[email protected]> wrote:
>
> 1. How can I expand (a + b + c + d)^4 in Sage?

Using Sage 3.3 you can do this:

sage: a, b, c, d = var("a b c d")
sage: expand((a + b + c + d)^4)
d^4 + 4*c*d^3 + 4*b*d^3 + 4*a*d^3 + 6*c^2*d^2 + 12*b*c*d^2 +
12*a*c*d^2 + 6*b^2*d^2 + 12*a*b*d^2 + 6*a^2*d^2 + 4*c^3*d + 12*b*c^2*d
+ 12*a*c^2*d + 12*b^2*c*d + 24*a*b*c*d + 12*a^2*c*d + 4*b^3*d +
12*a*b^2*d + 12*a^2*b*d + 4*a^3*d + c^4 + 4*b*c^3 + 4*a*c^3 +
6*b^2*c^2 + 12*a*b*c^2 + 6*a^2*c^2 + 4*b^3*c + 12*a*b^2*c + 12*a^2*b*c
+ 4*a^3*c + b^4 + 4*a*b^3 + 6*a^2*b^2 + 4*a^3*b + a^4

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to