First time here? Check out the FAQ!
answered 2023-01-09 10:28:24 +0100
Use the tensor algebra
sage: R = algebras.Free(QQ,['A','B','C']) sage: A,B,C = R.gens() sage: A*B-B*A A*B - B*A