Math.NET Numerics

Math.NET Numerics is an opensource numerical library for .Net, Silverlight and Mono.

Math.NET Numerics is the numerical foundation of the Math.NET initiative, aiming 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, statistics, interpolation, integration, regression, curve fitting, integral transforms (FFT) and more.

In addition to the core .NET package (which is written entirely in C#), Numerics specifically supports F# with idiomatic extension modules and maintains mathematical data structures like BigRational that originated in the F# PowerPack. If a performance boost is needed, the managed-code provider backing its linear algebra routines and decompositions can be exchanged with wrappers for optimized native implementations such as Intel MKL.

Math.NET Numerics is covered under the terms of the MIT/X11 license. You may therefore link to it and use it in both opensource and proprietary software projects. We accept contributions!

Current Version

Math.NET Numerics Version Math.NET Numerics
MKL Native Provider Version MKL Native Provider
OpenBLAS Native Provider Version OpenBLAS Native Provider
Data Extensions Version Data Extensions

Installation Instructions

The recommended way to get Math.NET Numerics is to use NuGet. The following packages are provided and maintained in the public NuGet Gallery.

Core Package:

  • MathNet.Numerics - core package, including .Net 4, .Net 3.5 and portable/PCL builds.
  • MathNet.Numerics.FSharp - optional extensions for a better F# experience. BigRational.
  • MathNet.Numerics.Signed - strong-named version of the core package (not recommended).
  • MathNet.Numerics.FSharp.Signed - strong-named version of the F# package (not recommended).

Alternative Provider Packages (optional):

  • MathNet.Numerics.MKL.Win-x86 - Native Intel MKL Linear Algebra provider (Windows/32-bit).
  • MathNet.Numerics.MKL.Win-x64 - Native Intel MKL Linear Algebra provider (Windows/64-bit).

Data/IO Packages for reading and writing data (optional):

  • MathNet.Numerics.Data.Text - Text-based matrix formats like CSV and MatrixMarket.
  • MathNet.Numerics.Data.Matlab - MATLAB Level-5 matrix file format.

Platform Support and Dependencies

Supported Platforms:

  • .Net 4.0, .Net 3.5 and Mono: Windows, Linux and Mac.
  • PCL Portable Profiles 7, 47, 78, 259 and 328: Windows 8, Silverlight 5, Windows Phone/SL 8, Windows Phone 8.1.
  • Xamarin: Android, iOS

For full details, dependencies and platform discrepancies see Platform Compatibility.

Building Math.NET Numerics

Windows (.Net): AppVeyor build status
Linux (Mono): Travis Build Status

You can build Math.NET Numerics with an IDE like VisualStudio or Xamarin, with MsBuild or with FAKE.


restore.cmd (or
msbuild MathNet.Numerics.sln


build.cmd Build    # build from the Windows console with .Net
./ Build   # build from Bash, with Mono on Linux/Mac or .Net on Windows
./ Test    # build and run unit tests

See Build & Tools for full details on how to build, generate documentation or even create a full release.

Related Repositories



Math.NET Numerics ...



Native Providers for Math.NET Numerics (obsolete, now included in mainline repo) ...



Data IO for Math.NET Numerics (obsolete, now included in mainline repo) ...



Math.NET Numerics ...



Math.NET Numerics ...

Top Contributors

cdrnet cuda jvangael alexkaratarakis tibel yoon-gu ovatsus kjbartel matajoh larzw manyue hany-abdelrahman MaLiN2223 praeclarum philcleveland lionpeloux glyphard ArtyomBaranovskiy evelinag scottstephens Superbest candychiu anders9ustafsson smoothdeveloper hsidky jbowtie StratThinker jneedhamspkt rneatherway pvandervelde


-   v3.13.1 zip tar
-   v3.13.0 zip tar
-   v3.12.0 zip tar
-   v3.11.1 zip tar
-   v3.11.0 zip tar
-   v3.10.0 zip tar
-   v3.9.0 zip tar
-   v3.8.0 zip tar
-   v3.7.1 zip tar
-   v3.7.0 zip tar
-   v3.6.0 zip tar
-   v3.5.0 zip tar
-   v3.4.0 zip tar
-   v3.3.0 zip tar
-   v3.3.0-beta2 zip tar
-   v3.3.0-beta1 zip tar
-   v3.2.3 zip tar
-   v3.2.2 zip tar
-   v3.2.1 zip tar
-   v3.2.0 zip tar
-   v3.1.0 zip tar
-   v3.0.2 zip tar
-   v3.0.1 zip tar
-   v3.0.0 zip tar
-   v3.0.0-beta05 zip tar
-   v3.0.0-beta04 zip tar
-   v3.0.0-beta03 zip tar
-   v3.0.0-beta02 zip tar
-   v3.0.0-beta01 zip tar
-   v3.0.0-alpha9 zip tar