some changes
This commit is contained in:
parent
4220b1c81d
commit
947b152163
7 changed files with 70 additions and 25 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue