Jensen's Device: Difference between revisions

Content deleted Content added
Line 209:
return temp
# note the correspondence between the mathematical notation and the call to sum
# it's almost as good as sum(1/i for i in range(1,101))
print (sum (i, 1, 100, lambda: 1.0/i.value))</python>
Output: 5.18737751764