small refactoring
sin, cos and tan