Ask Your Question

Revision history [back]

In many contexts like this one there is a map_coefficients method you can use:

sage: qf = DiagonalQuadraticForm(SR,[1,1,1])
sage: Cl.<e1,e2,e3> = CliffordAlgebra(qf) 
sage: u, v = var('u v')
sage: f = ((sin(u)^2 + cos(u)^2)*e1)
sage: f.map_coefficients(lambda z: z.full_simplify())
e1
sage: f.map_coefficients(attrcall('full_simplify'))
e1