
31 Jan
2010
31 Jan
'10
2:22 p.m.
On 31 January 2010 18:50, Daniel Fischer
Yes. Returning to that,
a) for tasks where it's appropriate/sufficiently natural, hand-coded loops are idiomatic, too.
Indeed - originally I looked at Markus's code and only saw that an unfoldr would be a natural implementation for the Leibniz generating function. I overlooked the episilon used to control the accuracy which pollutes the unfold and makes it no clearer (too much haste / speed on my part).
also the answers are divergent too...
In how far?
On my machine, they diverged at the eighth decimal place - Leibniz4 3.1415926526069526 Leibniz1 3.1415926445727678 Best wishes Stephen