3-- converting data from strings at runtime so as to prevent the
4-- compiler of eliding the calls to atan2 via constant folding
5input : List (String, String, String)
10 ("atan2", "-1", "-1"),
11 ("atan2", " 0", " 1"),
15round : Double -> Double
16round x = let y = x * 1e10
17 z = if y < 0 then (ceiling y) else (floor y)
20-- the input file is read at runtime so as to prevent the compiler of
21-- eliding the calls to atan2 via constant folding
24 main = traverse_ evalInput input
26 evalInput : (String, String, String) -> IO ()
27 evalInput ("atan2", y, x) = printLn $ round $ atan2 (cast y) (cast x)
28 evalInput _ = putStrLn $ "Could not eval line"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list