First time here? Check out the FAQ!
answered 2022-09-02 10:41:48 +0100
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