Cosine Button Convergence: Degrees vs Radians

  • Thread starter rumborak
  • Start date
  • Tags
    Cos
In summary, the cosine button on a calculator converges incredibly fast in degrees, but is much slower in radians. It is because the range [-1,1] in radians covers almost a third of the circle, while in degrees it is a tiny angle whose cosine is very close to 1.
  • #1
rumborak
706
154
This is of course just a silly exercise on a calculator, but it is intriguing that when operating in either degrees or "grad", hitting the cosine button will converge incredibly fast, whereas in radians it is a lot slower.

Anybody have a good idea why?
 
Computer science news on Phys.org
  • #2
It's because the result of the cos function is always in the range [-1,1] which, in degrees, is a tiny angle, whose cosine is very close to 1. So in degrees, the value always gets close to 1 in two steps.

In radians, the range [-1,1] covers almost a third of the circle, so that phenomenon does not apply. And the series does not converge to 1 either (for most starting values).
 
  • Like
Likes Tazerfish, QuantumQuest, jim mcnamara and 4 others
  • #3
rumborak said:
Anybody have a good idea why?
Cos that's how it goes. :wink:
 
  • Like
Likes Tazerfish, berkeman and websterling
  • #4
andrewkirk said:
And the series does not converge to 1 either (for most starting values).
It converges to about 0.739 in about fifteen iterations for all initial ##\theta##, ##0\leq\theta\leq 2\pi##, according to a quick spreadsheet I tried it in. In general it has to converge on ##\theta=\cos\theta##, in whatever units you are using, doesn't it?

Edit: ...which can be multi-valued if you use very large units, but not with radians.
 
Last edited:
  • #5
LOmId
Ibix said:
In general it has to converge on θ=cosθ\theta=\cos\theta, in whatever units you are using, doesn't it?

Edit: ...which can be multi-valued if you use very large units, but not with radians.
Yes, it will converge to the root(s) of the equation ##kx=\cos x## where ##k## is the number of units per radian. For degrees, ##k\approx 57.3##. The convergence point will differ according to the units. Graphically, it converges to the abscissa of the intersection point between the lines ##y=kx## and ##y=\cos x##. The following image shows the intersection point for units of double-radian, radian, half-radian and degrees (##k=0.5,1,2,180/\pi##). The roots are 0.51, 0.74, 0.90 and 0.9998 respectively.
LOmId


LOmId
multiple_lines.png


To work out the smallest units at which there will be multiple possible convergence points, we seek the tangent to the cosine curve that passes through the origin, with the point of touching being in the first quadrant. The tangency condition gives us equations ##kx=\cos x## and ##k= -\sin x##, with the second of those equating the gradients. From the first we get ##k=\frac{\cos x}x##. Substituting that into the second gives ##\frac{\cos x}x+\sin x=0##. Numerically seeking a solution for that in the interval ##(\pi,2\pi)## yields the root ##r\approx 6.12##. For units of ##r## radians each, there will be two possible convergence points, and I expect the point wto which it converges will depend on the initial value given to the calculator. For units larger than that, there will be at least three possible convergence points.

Here's a picture of the tangent.

EkIvG

tangent.png
 

Related to Cosine Button Convergence: Degrees vs Radians

What is cosine button convergence?

Cosine button convergence is a mathematical concept that refers to the relationship between the cosine function and its input values, which can be represented in either degrees or radians.

What is the difference between degrees and radians?

Degrees and radians are two different units of measurement for angles. Degrees are based on a circle being divided into 360 equal parts, while radians are based on the radius of a circle being divided into 2π equal parts.

Why is it important to understand the difference between degrees and radians in cosine button convergence?

It is important to understand the difference between degrees and radians because the cosine function behaves differently when its input values are in degrees versus radians. This can impact the accuracy of calculations and results when using the cosine function.

How do I convert between degrees and radians?

To convert from degrees to radians, you can use the formula: radians = (degrees * π)/180. To convert from radians to degrees, you can use the formula: degrees = (radians * 180)/π.

Which unit of measurement should I use for cosine button convergence?

The unit of measurement you should use for cosine button convergence depends on the specific problem or context. In some cases, using degrees may be more appropriate, while in others, radians may be a better choice. It is important to carefully consider the situation and use the appropriate unit of measurement to ensure accurate results.

Similar threads

Replies
7
Views
1K
  • Introductory Physics Homework Help
Replies
1
Views
927
  • STEM Academic Advising
Replies
2
Views
2K
  • STEM Academic Advising
Replies
1
Views
1K
  • STEM Career Guidance
Replies
5
Views
2K
  • STEM Educators and Teaching
Replies
15
Views
8K
  • STEM Academic Advising
Replies
1
Views
1K
  • STEM Career Guidance
Replies
6
Views
9K
Replies
13
Views
2K
  • STEM Academic Advising
Replies
8
Views
1K
Back
Top