Cosine Button Convergence: Degrees vs Radians

  • Thread starter Thread starter rumborak
  • Start date Start date
  • Tags Tags
    Cos
Click For Summary

Discussion Overview

The discussion revolves around the convergence behavior of the cosine function when evaluated using different units: degrees, radians, and "grad". Participants explore the implications of these units on convergence speed and the nature of the solutions to the equation involving cosine.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants note that the cosine function converges quickly in degrees or "grad", while it converges more slowly in radians.
  • One participant suggests that in degrees, the cosine of small angles is close to 1, leading to rapid convergence, whereas in radians, the range of cosine values is broader, affecting convergence behavior.
  • Another participant mentions that the series converges to approximately 0.739 for most initial values in radians, rather than 1.
  • There is a discussion about convergence to the roots of the equation ##kx=\cos x##, where ##k## represents the number of units per radian, with specific values provided for degrees and radians.
  • One participant describes a method to find multiple convergence points by analyzing the tangent to the cosine curve, leading to a numerical solution for larger units.

Areas of Agreement / Disagreement

Participants express differing views on the convergence behavior of the cosine function across different units, with no consensus reached on the implications of these differences.

Contextual Notes

The discussion includes assumptions about the behavior of the cosine function in various units and the conditions under which convergence points may vary, but these assumptions remain unresolved.

rumborak
Messages
706
Reaction score
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
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   Reactions: Tazerfish, QuantumQuest, jim mcnamara and 4 others
rumborak said:
Anybody have a good idea why?
Cos that's how it goes. :wink:
 
  • Like
Likes   Reactions: Tazerfish, berkeman and websterling
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:
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
 

Similar threads

Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
10K
  • · Replies 6 ·
Replies
6
Views
11K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K