Continued fraction: Difference between revisions

Content added Content deleted
Line 1,668: Line 1,668:
[[File:Fōrmulæ - Continued fraction 02.png]]
[[File:Fōrmulæ - Continued fraction 02.png]]


[[File:Fōrmulæ - Continued fraction 03.png]]
[[File:Fōrmulæ - Continued fraction 03a.png]]


Case 1. <math>\sqrt 2</math>
'''Case 1.''' <math>\sqrt 2</math>


In this case
In this case
Line 1,687: Line 1,687:
* The value of the normal (numeric) call, forced to be shown as a decimal number, by using the Math.Numeric expression (the N(x) expression)
* The value of the normal (numeric) call, forced to be shown as a decimal number, by using the Math.Numeric expression (the N(x) expression)


[[File:Fōrmulæ - Continued fraction 04.png]]
[[File:Fōrmulæ - Continued fraction 04a.png]]


[[File:Fōrmulæ - Continued fraction 05.png]]
[[File:Fōrmulæ - Continued fraction 05a.png]]


Case 2. <math>e</math>
'''Case 2.''' <math>e</math>


In this case
In this case
Line 1,699: Line 1,699:
* λb is n ↦ 1 if n = 1, n - 1 elsewhere
* λb is n ↦ 1 if n = 1, n - 1 elsewhere


[[File:Fōrmulæ - Continued fraction 06.png]]
[[File:Fōrmulæ - Continued fraction 06a.png]]


[[File:Fōrmulæ - Continued fraction 07.png]]
[[File:Fōrmulæ - Continued fraction 07a.png]]


Case 3. <math>\pi</math>
'''Case 3.''' <math>\pi</math>


In this case
In this case
Line 1,711: Line 1,711:
* λb is n ↦ 2(n - 1)²
* λb is n ↦ 2(n - 1)²


[[File:Fōrmulæ - Continued fraction 08.png]]
[[File:Fōrmulæ - Continued fraction 08a.png]]


[[File:Fōrmulæ - Continued fraction 09.png]]
[[File:Fōrmulæ - Continued fraction 09a.png]]


=={{header|Go}}==
=={{header|Go}}==