I would like to use MathNet.Numerics in my fsharp script file (I am very newbie). My OS is ubuntu and I am using visual code.
Would you know the best way to load this package in my script file?
I thank you in advance. Robi
I would like to use MathNet.Numerics in my fsharp script file (I am very newbie). My OS is ubuntu and I am using visual code.
Would you know the best way to load this package in my script file?
I thank you in advance. Robi
I recommend you read through tips 5 and 6 in this excellent primer on fsi: http://brandewinder.com/2016/02/06/10-fsharp-scripting-tips/
In a nutshell, you load a dll using the #r
directive, for example:
#r @"../packages/FSharp.Data.2.2.5/lib/net40/FSharp.Data.dll"
open FSharp.Data
Now, to get MathNet to your packages folder, you can use nuget, or for more complex projects it is recommended to use paket.