Include the tg_math header:
It automatically selects the best math function to use in a given situation.