]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/SumOfInverses2.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / SumOfInverses2.scl
1 import "Prelude"
2
3 f :: Integer -> Double
4 f m = sum [1/(fromInteger x) | x <- [1..m]]
5
6 main = f 100
7 --
8 5.187377517639621