Engel expansion: Difference between revisions
→{{header|Quackery}}: Added commentary, size of expansions for stretch
(Added Quackery.) |
(→{{header|Quackery}}: Added commentary, size of expansions for stretch) |
||
Line 382:
=={{header|Quackery}}==
Quackery uses bignum rationals, so loss of precision is not an issue.
<syntaxhighlight lang="Quackery"> [ $ "bigrat.qky" loadfile ] now!
Line 429 ⟶ 431:
[ $->v drop
2dup 200 point$ echo$ cr
v->engel
dup size echo say " numbers in expansion" cr
engel->v
200 point$ echo$ cr
cr ]</syntaxhighlight>
Line 448 ⟶ 452:
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211
192 numbers in expansion
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211
2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642743
115 numbers in expansion
2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642743
1.4142135623730950488016887242096980785696718753769480731766797379907324784621070388503875343276415727350138462309122970249248360558507372126441214970999358314132226659275055927558
185 numbers in expansion
1.4142135623730950488016887242096980785696718753769480731766797379907324784621070388503875343276415727350138462309122970249248360558507372126441214970999358314132226659275055927558
</pre>
|