I am having some trouble when I try to simplify certain trigonometic expressions For instance: after a loop using rotation matrices I obtain a matrix like