2 # Copyright (C) 2006-2009, Parrot Foundation.
5 # partialsums N (N = 2500000 for shootout)
8 # changed default value to N=25000 (shootout test default) Karl Forner
15 parray = new 'FixedFloatArray'
19 unless $I0 == 2 goto argok
28 unless k <= n goto endfor_0
35 $S0 = sprintf "%.9f\t(2/3)^k\n", parray
41 unless k <= n goto endfor_1
49 $S0 = sprintf "%.9f\tk^-0.5\n", parray
55 unless k <= n goto endfor_3
64 $S0 = sprintf "%.9f\t1/k(k+1)\n", parray
70 unless k <= n goto endfor_4
82 $S0 = sprintf "%.9f\tFlint Hills\n", parray
88 unless k <= n goto endfor_5
100 $S0 = sprintf "%.9f\tCookson Hills\n", parray
106 unless k <= n goto endfor_6
113 $S0 = sprintf "%.9f\tHarmonic\n", parray
119 unless k <= n goto endfor_7
127 $S0 = sprintf "%.9f\tRiemann Zeta\n", parray
134 unless k <= n goto endfor_8
142 $S0 = sprintf "%.9f\tAlternating Harmonic\n", parray
149 unless k <= n goto endfor_9
159 $S0 = sprintf "%.9f\tGregory\n", parray
168 # vim: expandtab shiftwidth=4 ft=pir: