Jensen's Device: Difference between revisions
Content deleted Content added
added haskell |
|||
Line 118: | Line 118: | ||
for i in range(lo,hi+1): |
for i in range(lo,hi+1): |
||
ref_i.value = i; |
ref_i.value = i; |
||
temp += term() |
|||
return temp |
return temp |
||
# note the correspondence between the mathematical notation and the call to sum # |
# note the correspondence between the mathematical notation and the call to sum # |