projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
947dc95aabecda4b137f0a77fafbaf9acc0e7c33
[ghc-hetmet.git]
/
ghc
/
tests
/
codeGen
/
cg035.hs
1
module Main (main) where
2
3
--import PreludeGlaST
4
import ST
5
import STBase
6
7
po :: Double -> Double
8
po rd = 0.5 + 0.5 * erf ((rd / 1.04) / sqrt 2)
9
where
10
erf :: Double -> Double
11
erf x = unsafePerformPrimIO (_ccall_ erf x)
12
13
main = putStr (shows (po 2.0) "\n")