added trig functions. not enough testing yet.