trig basis application