Test a trig function.