Created
April 21, 2014 18:14
-
-
Save bjartwolf/11151261 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
open System | |
open System.IO | |
open FsCheck | |
open FsCheck.Xunit | |
[<Measure>] type m | |
[<Measure>] type Area = m^2 | |
[<Measure>] type Volume = Area*m | |
let f (h:decimal<m>) = h | |
let g (a: decimal<m>) (b: decimal<m>):decimal<m^2> = ? | |
let V h a b = f h * g a b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment