some changes

This commit is contained in:
Araq 2014-06-09 08:03:54 +02:00
commit 947b152163
7 changed files with 70 additions and 25 deletions

View file

@ -8,7 +8,7 @@ import strutils, math, threadpool
proc term(k: float): float = 4 * math.pow(-1, k) / (2*k + 1)
proc piU(n: int): float =
var ch = newSeq[Promise[float]](n+1)
var ch = newSeq[FlowVar[float]](n+1)
for k in 0..n:
ch[k] = spawn term(float(k))
for k in 0..n: