Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Variables in Sage

I started using sage today and I encountered sime strange errors:

I declared variables a,b,c,d using var('a,b,c,d'). When I tried to expand (a2+b2)(c2+d2)

(expand((a2+b2)(c2+d2)) I got the following result:

c4+2c2d2+d4+b2,

which is obviously not the correct result. Does anyone know why I got this incorrect andwer?