Feigenbaum constant calculation: Difference between revisions
Content added Content deleted
m (→{{header|FutureBasic}}: Inserted code indents) |
(→{{header|jq}}: simplify) |
||
Line 1,018: | Line 1,018: | ||
| .a -= (.x / .y) ) |
| .a -= (.x / .y) ) |
||
| .d = (.a1 - .a2) / (.a - .a1) |
| .d = (.a1 - .a2) / (.a - .a1) |
||
| .d1 = .d | .a2 = .a1 | .a1 = .a; |
|||
| .emit = pp($i; .d) |
|||
pp($i; .d) ) ) ; |
|||
.emit ) ) ; |
|||
Feigenbaum_delta(13; 10) |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
{{out}} |
||
Line 1,042: | Line 1,040: | ||
12 4.669200975097843 |
12 4.669200975097843 |
||
13 4.669205372040318 |
13 4.669205372040318 |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|Julia}}== |
=={{header|Julia}}== |