Skip to content

Instantly share code, notes, and snippets.

@battleguard
Created August 25, 2015 15:05
Show Gist options
  • Select an option

  • Save battleguard/058bbf719b6be123c658 to your computer and use it in GitHub Desktop.

Select an option

Save battleguard/058bbf719b6be123c658 to your computer and use it in GitHub Desktop.
Fixed point of f(x) = cos(x) where x = 3.00
count input output difference
1 3.000000 -0.989992 3.989993
2 -0.989992 0.548696 1.538689
3 0.548696 0.853205 0.304509
4 0.853205 0.657572 0.195634
5 0.657572 0.791479 0.133907
6 0.791479 0.702794 0.088685
7 0.702794 0.763039 0.060245
8 0.763039 0.722739 0.040300
9 0.722739 0.749997 0.027258
10 0.749997 0.731691 0.018306
11 0.731691 0.744046 0.012355
12 0.744046 0.735735 0.008311
13 0.735735 0.741338 0.005603
14 0.741338 0.737566 0.003772
15 0.737566 0.740108 0.002542
16 0.740108 0.738396 0.001712
17 0.738396 0.739549 0.001153
18 0.739549 0.738772 0.000777
19 0.738772 0.739296 0.000523
20 0.739296 0.738943 0.000353
21 0.738943 0.739181 0.000238
22 0.739181 0.739021 0.000160
23 0.739021 0.739129 0.000108
24 0.739129 0.739056 0.000073
25 0.739056 0.739105 0.000049
26 0.739105 0.739072 0.000033
27 0.739072 0.739094 0.000022
28 0.739094 0.739079 0.000015
29 0.739079 0.739089 0.000010
30 0.739089 0.739082 0.000007
Fixed Point = 0.739082
Fixed point of f(x) = x - tan(x) where x = 2.00
count input output difference
1 2.000000 4.185040 2.185040
2 4.185040 2.467893 1.717147
3 2.467893 3.266186 0.798293
4 3.266186 3.140944 0.125242
5 3.140944 3.141593 0.000649
6 3.141593 3.141593 0.000000
Fixed Point = 3.141593
Fixed point of f(x) = 1 + 1/x where x = 10.00
count input output difference
1 10.000000 1.100000 8.900000
2 1.100000 1.909091 0.809091
3 1.909091 1.523810 0.385281
4 1.523810 1.656250 0.132440
5 1.656250 1.603774 0.052476
6 1.603774 1.623529 0.019756
7 1.623529 1.615942 0.007587
8 1.615942 1.618834 0.002892
9 1.618834 1.617728 0.001106
10 1.617728 1.618151 0.000422
11 1.618151 1.617989 0.000161
12 1.617989 1.618051 0.000062
13 1.618051 1.618027 0.000024
14 1.618027 1.618037 0.000009
Fixed Point = 1.618037
Fixed point of f(x) = 4x(1-x) where x = 0.00
count input output difference
1 0.000000 0.000000 0.000000
Fixed Point = 0.000000
Fixed point of f(x) = 4x(1-x) where x = 0.25
count input output difference
1 0.250000 0.750000 0.500000
2 0.750000 0.750000 0.000000
Fixed Point = 0.750000
Fixed point of f(x) = 4x(1-x) where x = 0.50
count input output difference
1 0.500000 1.000000 0.500000
2 1.000000 0.000000 1.000000
3 0.000000 0.000000 0.000000
Fixed Point = 0.000000
Fixed point of f(x) = 4x(1-x) where x = 0.75
count input output difference
1 0.750000 0.750000 0.000000
Fixed Point = 0.750000
Fixed point of f(x) = 4x(1-x) where x = 1.00
count input output difference
1 1.000000 0.000000 1.000000
2 0.000000 0.000000 0.000000
Fixed Point = 0.000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment