basic trigonometry works