]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/SumOfInverses2.scl
Re-enabled Acorn transaction cancellation support for testing
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / SumOfInverses2.scl
1 import "Prelude"\r
2 \r
3 f :: Integer -> Double\r
4 f m = sum [1/(fromInteger x) | x <- [1..m]]\r
5 \r
6 main = f 100\r
7 --\r
8 5.187377517639621\r