In [2]:
#N "MathNet.Numerics"
#N "MathNet.Numerics.FSharp"
#N "IfSharp.Charting/0.1.0-alpha/pre"
open MathNet.Numerics
open IfSharp.Charting
App.AddDisplayPrinter (fun (x: IfSharp.Charting.ChartTypes.ChartBase) ->
{ ContentType = "text/html"; Data = x.ToHtml()})
Out[2]:
Out[2]:
Out[2]:
Out[2]:
Out[2]:
Out[2]:
Out[2]:
Out[2]:
In [3]:
Line.create [ for i in 0. .. 10. -> i, i*i ]
Out[3]:
In [4]:
Histogram.create [ for i in 0. .. 500. do yield Distributions.Normal.Sample( 30., 20.) ]
Out[4]:
In [5]:
Line.create [ for i in 0. .. 100. -> i, sin(i / 10.)]
|> Line.addSeries [ for i in 0. .. 100. -> i, 0.5 * cos (i / 10.)]
|> Line.xLabel "Time (ms)"
|> Line.yLabel "Voltage (v)"
|> Line.xExtendedTicks true
|> Line.legend ["Sine Wave"; "Cosine Wave"]
Out[5]:
In [ ]: