This project has moved and is read-only. For the latest updates, please go here.

Math.NET Numerics from F#

Jun 9, 2014 at 7:41 PM
I got Math.NET Numerics code from github and see that for some function you have equivalent F#, but for some are absent. Actually I don't see Euclid module in F#. I wander in order to use GreatestCommonDivisor from F# should it be F# function or I can use C# library directly? For example when I try to run in FSI:

Euclid.GreatestCommonDivisor 259 111

I get error: error FS0039: The namespace or module 'Euclid' is not defined

PS: I ran open MathNet.Numerics before
Jun 9, 2014 at 10:46 PM
Yes, all of the core library (which is written in C#) can be used from F# directly. The F# package is mostly there for convenience, to make using it in F# easier or more natural/idiomatic - and it adds a few more types, like BigRational.

The static Euclid class is new in v3. What version of MathNet.Numerics are you using?

Marked as answer by cdrnet on 6/10/2014 at 3:49 AM
Jun 10, 2014 at 12:02 AM
I installed nuget MathNet.Numerics.2.6.2
Jun 10, 2014 at 12:34 AM
okay, it's working with last version 3.0.0-beta03