projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 2001-08-14 13:40:07 by sewardj]
[ghc-hetmet.git]
/
ghc
/
tests
/
codeGen
/
should_run
/
cg035.hs
1
2
module Main (main) where
3
4
import IOExts ( unsafePerformIO )
5
6
po :: Double -> Double
7
po rd = 0.5 + 0.5 * erf ((rd / 1.04) / sqrt 2)
8
where
9
erf :: Double -> Double
10
erf x = unsafePerformIO (_ccall_ erf x)
11
12
main = putStr (shows (po 2.0) "\n")