Created
April 11, 2014 22:23
-
-
Save bjartwolf/10506422 to your computer and use it in GitHub Desktop.
1c
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
[<Measure>] type Length | |
[<Measure>] type Area = Length*Length | |
let area (a : float<Length>) (b: float<Length>) = a * a *a / b | |
let a1:float<Area> = area 0.0<Length> 1.0<Length> | |
let a2:float<Area> = area 1.0<Length> 0.0<Length> | |
("for 0,1: " + a1.ToString()).Dump() | |
("for 1,0: " + a2.ToString()).Dump() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for 0,1: 0
for 1,0: Infinity