Manually calculate Arccosine and Arctangent

  • Context: High School 
  • Thread starter Thread starter Philosophaie
  • Start date Start date
  • Tags Tags
    Arctangent
Click For Summary

Discussion Overview

The discussion centers on methods for manually calculating the arccosine and arctangent functions without the use of a scientific calculator. It explores various mathematical approaches, including Taylor series expansions, specific angle recognition, and algorithmic considerations for accuracy and efficiency.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant suggests using the formula \(\theta = \tan^{-1}(\frac{y}{x})\) for arctangent and \(\theta2 = \cos^{-1}(\frac{z}{\sqrt{x^2+y^2+z^2}})\) for arccosine.
  • Another participant proposes making a finite Taylor series expansion as a method for calculation.
  • A different viewpoint mentions recognizing the value inside the arccos function as the cosine of a specific angle, which could directly provide the answer.
  • One participant notes that series expansions can be transformed into Chebyshev expansions, which are studied in numerical analysis courses.
  • There is a discussion about the balance between algorithm length and accuracy, highlighting the complexity of finding an optimal solution.
  • A participant provides a specific approximation formula for arctangent, suggesting it can yield about four digits of accuracy and discusses the feasibility of calculating it by hand.
  • For arccosine, an identity involving arctangent is presented, along with a mention of methods for computing square roots by hand.

Areas of Agreement / Disagreement

Participants present multiple competing methods for calculating arccosine and arctangent, with no consensus on a single preferred approach. The discussion remains unresolved regarding the best method for manual calculation.

Contextual Notes

Some methods discussed may depend on specific assumptions about the range of values or the desired accuracy. The feasibility of manual calculations varies based on the chosen approach.

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.)
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
19
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K