MCPcopy Index your code
hub / github.com/apache/groovy / main

Method main

benchmark/bench/recursive.java:12–24  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

10public class recursive
11{
12 public static void main(String args[])
13 {
14 int n = Integer.parseInt(args[0]);
15
16 System.out.printf("Ack(3,%d): %d\n", n, ack(3, n));
17 System.out.printf("Fib(%.1f): %.1f\n", 27.0 + n, fib(27.0 + n));
18
19 n -= 1;
20 System.out.printf("Tak(%d,%d,%d): %d\n", n * 3, n * 2, n, tak(n * 3, n * 2, n));
21
22 System.out.printf("Fib(3): %d\n", fib(3));
23 System.out.printf("Tak(3.0,2.0,1.0): %.1f\n", tak(3.0, 2.0, 1.0));
24 }
25
26 public static int ack(int m, int n)
27 {

Callers

nothing calls this directly

Calls 5

ackMethod · 0.95
fibMethod · 0.95
takMethod · 0.95
parseIntMethod · 0.80
printfMethod · 0.45

Tested by

no test coverage detected