Added trig simplification functions