Convert Trig Function To Algebraic Function