menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Pressing t...
source image

Johndcook

3w

read

207

img
dot

Pressing the cosine key over and over

  • No matter what number you start with, if you press the cos key on a calculator repeatedly, the numbers eventually quit changing.
  • Starting with iteration 90, the code prints 0.7390851332151607 every time.
  • The iteration converges for any starting point between 0 and 1.
  • The rate of convergence is more like sin(p)k near the fixed point.

Read Full Article

like

12 Likes

For uninterrupted reading, download the app