Algebra and trigonometry : a funtions approach