Computing arctan (inverse tan) function

In summary, Homework StatementSurprisingly I get different results when I try to compute the inverse tangent function. My goal is to compute it both manually and using calculator in radiant mode.
  • #1
Vital
108
4

Homework Statement


Hello!
Surprisingly I get different results when I try to compute the inverse tangent function.
My goal is to compute it both manually and using calculator in radiant mode.

Homework Equations



My goal is to compute arctan(½) both manually and using calculator in radiant mode.

The Attempt at a Solution


[/B]
(1) First problem with calculator:
When I try to compute arctan(½) using any online calculator, I stumble upon different results; some calculators even refuse to compute it.
- https://web2.0calc.com gives me the result I see in the textbook
arctan(½) = 0.463647609001
- http://calculator.tutorvista.com/arctan-calculator.html
arctan(½) = 0.785...

(2) Second problem - manual computation gives different answer from any of above ones:
arctan(½) means that tan(θ) = ½
This means that θ can be in Quadrant I or in Quadrant III.

tan(θ) = sin(θ) / cos(θ)
sin(θ) = √1 - cos2(θ) (the whole expression is under square root sign, sorry for not being able to show it correctly)

hence, tan(θ) = ( √1 - cos2(θ)) / cos(θ)
Let cos(θ) = x, then tan(θ) = ( √1 - x2) / x = ½

Squaring both sides I get:

(1 - x2) / x2 = ¼

x = +- 2/√5
Let's choose positive cos, then cos(θ) = 2/√5 ≈ 0.8944
sin(θ) = √1-cos2(θ) = √1-0.89442 ≈ 0.4472

Thus tan(θ) = 0.4472 / 0.8944 = 0.5 (without any rounding, it is strictly 0.5)
Which is not 0.463647609001 (this can be rounded to 0.5, but it is not the same).

Please, help me to find my mistake in manual computation.
Thank you!
 
Physics news on Phys.org
  • #2
Vital said:
arctan(½) means that tan(θ) = ½
Vital said:
Thus tan(θ) = 0.4472 / 0.8944 = 0.5 (without any rounding, it is strictly 0.5)
Which is not 0.463647609001 (this can be rounded to 0.5, but it is not the same).
You simply recalculated tan(θ), not arctan(1/2).

Vital said:
You used that site incorrectly. It cannot parse 1/2 and is returning arctan(1). Try inputting 0.5 instead.

WolframAlpha is always a good resource for these calculations: http://www.wolframalpha.com/input/?i=arctan(1/2)
 
  • #3
DrClaude said:
You simply recalculated tan(θ), not arctan(1/2).You used that site incorrectly. It cannot parse 1/2 and is returning arctan(1). Try inputting 0.5 instead.

WolframAlpha is always a good resource for these calculations: http://www.wolframalpha.com/input/?i=arctan(1/2)
I see. Thank you very much!
Could you, please, also take a look at my manual computation and why I don't get a correct answer there? Thank you very much for your help.
 
  • #4
Vital said:
Could you, please, also take a look at my manual computation and why I don't get a correct answer there?
Because you are not computing anything! Nowhere are you writing an equation for θ. The best you will come to is ##\theta = \arccos(2/\sqrt{5})##, which doesn't bring you closer to a numerical result than ##\arctan(1/2)##. You are better off using the series expansion
$$
\arctan(x) = x -\frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \ldots
$$
for ##|x| < 1##.
 
  • #5
Vital said:
My goal is to compute arctan(½) both manually and using calculator in radiant mode.

If you have Excel spreadsheet, then simply typing ##=ATAN(0.5)## into a cell does the job.
 
  • #6
PeroK said:
If you have Excel spreadsheet, then simply typing ##=ATAN(0.5)## into a cell does the job.
I do ) Thank you. But my main goal is to do the same manually - it is easy to use technical devices, but that doesn't help to learn. )
 
  • #7
DrClaude said:
Because you are not computing anything! Nowhere are you writing an equation for θ. The best you will come to is ##\theta = \arccos(2/\sqrt{5})##, which doesn't bring you closer to a numerical result than ##\arctan(1/2)##. You are better off using the series expansion
$$
\arctan(x) = x -\frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \ldots
$$
for ##|x| < 1##.
Sorry, that is not the part I have leaned yet, so I have to use those easy tools which have been covered in the book thus far.
 
  • #8
Vital said:
I do ) Thank you. But my main goal is to do the same manually - it is easy to use technical devices, but that doesn't help to learn. )

Vital said:
(1) First problem with calculator:
When I try to compute arctan(½) using any online calculator, I stumble upon different results; some calculators even refuse to compute it.
- https://web2.0calc.com gives me the result I see in the textbook
arctan(½) = 0.463647609001
- http://calculator.tutorvista.com/arctan-calculator.html
arctan(½) = 0.785...

You were obviously struggling to find a technical device that you could successfully operate, so I suggested Excel and how to use it. If you already know how to compute this on a calculator, why are you posting your difficulties in doing so?
 
  • #9
PeroK said:
You were obviously struggling to find a technical device that you could successfully operate, so I suggested Excel and how to use it. If you already know how to compute this on a calculator, why are you posting your difficulties in doing so?
When I posted the question, DrClaude has kindly helped me to see a mistake I did when trying to use an online calculator. So now that is clear to me.
If you take a look at my initial post, you will see that I am also struggling with a "manual" approach.
 
  • #10
Vital said:

Homework Statement


Hello!
Surprisingly I get different results when I try to compute the inverse tangent function.
My goal is to compute it both manually and using calculator in radiant mode.

Homework Equations



My goal is to compute arctan(½) both manually and using calculator in radiant mode.

The Attempt at a Solution


[/B]
(1) First problem with calculator:
When I try to compute arctan(½) using any online calculator, I stumble upon different results; some calculators even refuse to compute it.
- https://web2.0calc.com gives me the result I see in the textbook
arctan(½) = 0.463647609001
- http://calculator.tutorvista.com/arctan-calculator.html
arctan(½) = 0.785...

(2) Second problem - manual computation gives different answer from any of above ones:
arctan(½) means that tan(θ) = ½
This means that θ can be in Quadrant I or in Quadrant III.

tan(θ) = sin(θ) / cos(θ)
sin(θ) = √1 - cos2(θ) (the whole expression is under square root sign, sorry for not being able to show it correctly)

hence, tan(θ) = ( √1 - cos2(θ)) / cos(θ)
Let cos(θ) = x, then tan(θ) = ( √1 - x2) / x = ½
As already pointed out, the manual method you used gave you ##\cos(\theta)##, not ##\theta## itself.

In order to compute ##\arctan(t)## for any input ##0 < t < \pi/2## you need to be able to compute ##\tan(\theta)## for numerical inputs ##\theta##, because what you want to do is solve the equation ##\tan(\theta) = t## numerically. Typical equation-solving methods obtain (approximate) solutions by, essentially, searching through different values of ##\theta## until finding one that "works". You can Google the following topics about solving single-variable equations numerically: bisecting search, secant method, regula falsi, Newton's method, and others.
 
  • #11
Ray Vickson said:
As already pointed out, the manual method you used gave you ##\cos(\theta)##, not ##\theta## itself.

In order to compute ##\arctan(t)## for any input ##0 < t < \pi/2## you need to be able to compute ##\tan(\theta)## for numerical inputs ##\theta##, because what you want to do is solve the equation ##\tan(\theta) = t## numerically. Typical equation-solving methods obtain (approximate) solutions by, essentially, searching through different values of ##\theta## until finding one that "works". You can Google the following topics about solving single-variable equations numerically: bisecting search, secant method, regula falsi, Newton's method, and others.
I see. Thank you very much for these suggestions. I will study them.
 

1. What is the purpose of computing arctan function?

The arctan function, also known as the inverse tangent function, is used to determine the angle of a right triangle given the ratio of its opposite and adjacent sides. It is commonly used in mathematical and scientific applications.

2. How do you compute the arctan function?

The arctan function can be computed using a calculator or by using a mathematical formula. The formula is: arctan(x) = tan-1(x), where x is the ratio of the opposite and adjacent sides of a right triangle.

3. What is the range of the arctan function?

The range of the arctan function is -π/2 to π/2 radians or -90° to 90°. This means that the output of the function will always be within this range.

4. Can the arctan function be used to find the angle of any triangle?

No, the arctan function can only be used to find the angle of a right triangle. It cannot be used to find the angles of any other type of triangle.

5. Are there any limitations to using the arctan function?

Yes, one limitation is that the arctan function is undefined for certain values, such as when the adjacent side is 0. In addition, the function can only provide an accurate angle within its defined range.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
3
Views
50K
Replies
6
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
7K
  • Introductory Physics Homework Help
Replies
1
Views
3K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
19K
  • Calculus and Beyond Homework Help
Replies
7
Views
7K
Back
Top