F# is a strongly-typed language like C#.It is light weight syntax just like Python.It give you math-like
feel.
let
data = (1,2,3)
let
rotations (x, y, z) =
[ (x, y, z);
(z, x, y);
(y, z, x) ]
let
derivative f x =
let p1 = f (x - 0.05)
let p2 = f (x + 0.05)
(p2 - p1) / 0.1
let
f x = 2.0*x*x - 6.0*x + 3.0
let
df = derivative f
System.Console.WriteLine("The derivative of f at x=4 is {0}", df 4.0)
This program will print: “The derivative of f at x=4 is 10”That’s a quick look
at just a few of the exciting features of F#. For
more on F#, visit the F# Development Center on MSDN.