DEPRECATED Manipulating trig expressions with pythagorean identities