Any real number a can be written as a continued fraction:
a = a0 + |
|
, which is often abbreviated [a0;a1,a2,a3,…]. The dfc command writes a real number as a continued fraction.
Remarks.
a=a0+ |
|
a=a0+ |
|
Examples.
⎡ ⎣ | 1,2, | ⎡ ⎣ | 2 | ⎤ ⎦ | ⎤ ⎦ |
⎡ ⎣ | 1,2,2,2,2,2,2,2,2,2,2,2,2 | ⎤ ⎦ |
⎡ ⎣ | 1,2,2,2,2,2,2,2,2,2,2,2,2 | ⎤ ⎦ |
⎡ ⎢ ⎢ ⎣ | 1,2,3,4,5, |
| ⎤ ⎥ ⎥ ⎦ |
|
⎡ ⎣ | 1,2,3,4,5,6,7 | ⎤ ⎦ |
⎡ ⎢ ⎢ ⎣ | 3,7,15,1,292, |
| ⎤ ⎥ ⎥ ⎦ |
⎡ ⎣ | 3,7,15,1,292,1.57581843574 | ⎤ ⎦ |
⎡ ⎣ | 3,7,15,1,292 | ⎤ ⎦ |