tanx = sinx/cosx to reduce it to a bunch of sine/cosine stuff
You can ask a new question or answer this question.