Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You may use symbolic variables and interpret the * operator as the inner poduct:

sage: u,v,r = var("u v r")
sage: (u*(v+r*u)).expand()
r*u^2 + u*v