Inline all support functions for sin and cos