projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1997-08-14 18:27:10 by sof]
[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")