2 <!-- MOZ_INSERT_CONTENT_HOOK -->
3 <script src = runner.js
></script>
5 var onlyName
= 'Ack', onlyNum
= 6;
8 // The Computer Language Shootout
9 // http://shootout.alioth.debian.org/
10 // contributed by Isaac Gouy
13 if (m
==0) { return n
+1; }
14 if (n
==0) { return ack(m
-1,1); }
15 return ack(m
-1, ack(m
,n
-1) );
19 if (n
< 2){ return 1; }
20 return fib(n
-2) + fib(n
-1);
25 return tak(tak(x
-1,y
,z
), tak(y
-1,z
,x
), tak(z
-1,x
,y
));
28 startTest("real-recursive");
30 for ( var i
= 3; i
<= 6; i
++ ) (function(i
){
32 test("Ack", i
, function(){
36 test("Fib", i
, function(){
40 test("Tak", i
, function(){
49 <body onload=
"thisTest()"></body></html>