This project has moved. For the latest updates, please go here.

Math.NET Numerics from F#

Jun 9, 2014 at 6: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
Coordinator
Jun 9, 2014 at 9: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?

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