Manually calculate Arccosine and Arctangent

  • Thread starter Thread starter Philosophaie
  • Start date Start date
  • Tags Tags
    Arctangent
Philosophaie
Messages
456
Reaction score
0
How do you calculate Arccosine and Arctangent if you do not have a scientific calculator.
\theta = atan(\frac{y}{x})
\theta2 = acos(\frac{z}{\sqrt{x^2+y^2+z^2}})
 
Mathematics news on Phys.org
Make a finite Taylor series expansion, for example.
 
Or, if you recognize the value inside the acos, for example, as the cosine value to some specific angle, then that specific angle is your desired answer.
 
The series expansions (Taylor series) can be used though most computational methods first transform this into a Chebyshev expansion. You will study these if you take a course in numerical analysis.

For an introduction see: http://en.wikipedia.org/wiki/Chebyshev_polynomials It takes a while to get to the application of the polynomials to approximation theory.
 
Essentially, what you want is a finite algorithm of a) minimal length and retaining b) optimal accuracy for your answer.
These two competing issues generate in general, a tricky balancing act, although much research has uncovered a lot of techniques that justifiably have become "favoured".
 
Last edited:
Though it is nearly 8 weeks late, if you need only about 4 digits of accuracy, you could use tan^{-1}\approx \frac{x(240+115x^{2})}{240+195x^{2}+17x^{4}}, x\in [-1,1] and for x outside that range, use the identity tan^{-1}(x)=\frac{\pi}{2}-tan^{-1}(\frac{1}{x}). It might be a pain by hand, but it is doable.

Using Chebyshev polynomials or Taylor Series will take you a looong time :P

So, as an example, take x=.1
tan^{-1}(.1)\approx \frac{.1(240+115*.01)}{240+195*.01+17*.0001}
= \frac{.1(241.15)}{241.9517}
= \frac{24.115}{241.9517}
\approx .0996686529

Compare to my calculator which returns .0996686525 ;)

See this post for the derivation of that formula.

For arccos, you can use the identity:
cos^{-1}(x)=2tan^{-1}\left(\sqrt{\frac{1-x}{1+x}}\right), x\in (-1,1]

To compute square roots by hand, there are a number of methods, but the method I am most familiar with is in binary, so I don't know how useful that will be :/ (Note that the square root will be squared in two places plugging it into the arctangent approximation, so you don't technically need to compute the square root, there.)
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top