1
$\begingroup$

I'd like to calculate an angle using nothing but either tangent, cosine, or sine, or any combination of the two. Is this possible? If so, how?

Why I'm asking this

I know how to program, but I find that I can't really get much farther until I start learning higher level mathematics. Therefore, I'm writing out C functions to teach me maths :D.

  • 0
    So this is for programming? You'll want to look into two-argument arctangent (`atan2()` in some languages).2011-12-24

2 Answers 2

1

You want to learn programming and advanced mathematics then find root of $$f(\phi) = \cos\theta - \cos \phi $$

using Bisection method or Newton-Raphson method. Writing program for any of the methods is easy.

Note: Here $\cos \theta$ is value of cosine given to you and $\phi$ is your guess.

1

Inverse Trigonometric Functions - Wikipedia

  • 0
    Providing me with a link isn't going to help much - I already looked through that before asking here. There is tons to read, and for you (as a contributor) to post only that seems...well, lacking if I do say so myself.2011-12-25
  • 0
    @Holland I interpreted your question as "Given the sine,cosine, or tangent of an angle, how do I find the angle?", which my link answers in far more depth than any answer I could ever give. I'm sorry if that link isn't helpful to you, but you gave me very little to go on in your question, so I had to do the best I could. In the future, you should provide more detail about what you've looked at and where you're stuck. That way, we can give better answers, and also know that you've done the obligatory google search that surprisingly many askers here neglect to do.2011-12-25
  • 1
    Understandable. I'll be sure to note that the next time I ask a question.2011-12-25