It would be certainly more efficient to actually simplify many of the obviously overly complicated "formulas" there. Just for the sake of argument, you achieve the same "effect" of sin(t)cos(t) with a simple sin(2t) (ignoring the 0.5 multiplying the sin that made the amplitude of the movement unnecessarily small).