Math.NET Numerics
Math.NET Numerics aims to provide methods and algorithms for numerical computations in science, engineering and every day use. Covered topics include special functions, linear algebra, probability models, random numbers, interpolation, integration, regression, optimization problems and more.
Math.NET Numerics is part of the Math.NET initiative and is the result of merging dnAnalytics with Math.NET Iridium, replacing both. Available for free under the MIT/X11 License. It targets Microsoft .Net 4.0 and higher, including Mono, and .Net Standard 1.3 and higher (with builds for .Net Standard 2.0). In addition to a purely managed implementation it also supports native hardware optimization. See Platform Support for full details.
NuGet Packages
 MathNet.Numerics  core package
 MathNet.Numerics.FSharp  optional extensions for a better experience when using F#.
See NuGet & Binaries for a complete list of our NuGet packages, Zip files and the release archive.
Using Math.NET Numerics with C#
Being written in it, Math.NET Numerics works very well with C# and related .Net languages.
When using Visual Studio or another IDE with builtin NuGet support, you can get started
quickly by adding a reference to the MathNet.Numerics
NuGet package. Alternatively you can grab
that package with the command line tool with nuget.exe install MathNet.Numerics Pre
or simply download the Zip package.
let's say we have a matrix \(\mathrm{A}\) and want to find an orthonormal basis of the kernel or nullspace of that matrix, such that \(\mathrm{A}x = 0\) for all \(x\) in that subspace.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 

F# and F# Interactive
Even though the core of Math.NET Numerics is written in C#, it aims to support F#
just as well. In order to achieve this we recommend to reference the MathNet.Numerics.FSharp
package in addition to MathNet.Numerics
, which adds a few modules to make it more
idiomatic and includes arbitrary precision types (BigInteger, BigRational).
1: 2: 3: 4: 

It also works well in the interactive F# environment (REPL) which can be launched with
fsharpi
on all platforms (including Linux). As a start let's enter the following lines
into F# interactive. Append ;;
to the end of a line to run all code up to there
immediately and print the result to the output. Use the tab key for autocompletion or #help;;
for help.
For convenience our F# packages include a small script that sets everything up properly:
1: 2: 3: 4: 5: 6: 7: 8: 

Visual Basic
Let's use Visual Basic to find the polynomial roots \(x\) such that \(2x^2  2x  2 = 0\) numerically. We already know there are two roots, one between 2 and 0, the other between 0 and 2:
1: 2: 3: 4: 5: 6: 7: 8: 9: 

Linux with Mono
You need a recent version of Mono in order to use Math.NET Numerics on anything other than Windows. Luckily there has been great progress lately to make both Mono and F# available as proper Debian packages. In Debian testing and Ubuntu 14.04 (trusty/universe) you can install both of them with APT:
1: 2: 3: 

If you don't have NuGet yet:
1: 2: 

Then you can use NuGet to fetch the latest binaries in your working directory.
The Pre
argument causes it to include prereleases, omit it if you want stable releases only.
1: 2: 3: 

In practice you'd probably use the Monodevelop IDE instead which can take care of fetching and updating
NuGet packages and maintain assembly references. But for completeness let's use the compiler directly this time.
Let's create a C# file Start.cs
:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 

Compile and run:
1: 2: 3: 4: 5: 

Which will print something like the following to the output:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 

See Intel MKL for details how to use native providers on Linux.