Created
February 18, 2014 14:30
-
-
Save robertberry-zz/9072075 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intervals :: Integer -> [Float] | |
intervals n = [-1.0 + (fromIntegral i) * interval | i <- [0 .. (n - 1)]] | |
where interval = 2.0 / (fromIntegral (n - 1)) | |
main = print $ intervals 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment