# Top 7 C# Math Libraries

by aswini1 Updated: Mar 28, 2023

Guide Kit

C# Math Libraries provide various functionalities and features which can be used for different mathematical calculations. C# Math libraries provide basic math functions like multiplication, division, addition, and subtraction. It offers trigonometric functions like cosine, sine, and tangent.

C# Math libraries provide logarithm and exponential functions like natural logarithm, exponent, and logarithm base 10. It offers support for complex math and number functions. It offers statistical functions like median, variance, mean, mode, correlation coefficient, and standard deviation. It supports linear algebra operations like eigenvectors and eigenvalues, matrix multiplication, and determinants. It offers numerical analysis functions like differentiation, solving differential equations, and numerical integration.

Here is the list of the top 7 C# Math Libraries handpicked for helping developers with mathematical functions.

**MathUtilities: **

- Includes additional trigonometric functions like secant, cotangent, and cosecant.
- Include functions for performing linear algebra operations like solving equations and finding eigenvectors.
- Offers a range of additional mathematical utilities and functions which can be used in engineering, financial, and scientific applications.

MathUtilitiesby zalo

A collection of some of the neat math and physics tricks that I've collected over the last few years.

MathUtilitiesby zalo

C# 3657 Version:Current License: Permissive (Unlicense)

**mathnet-numerics: **

- Is an open source library that offers various mathematical tools and functions for numerical computing.
- Offers trigonometric functions like a tangent, inverse trigonometric functions, sine, and cosine.
- Offers a complete set of linear algebraic operations like determinants, Cholesky decomposition, QR decomposition, SVD decomposition, and eigenvalues and eigenvectors.

mathnet-numericsby mathnet

Math.NET Numerics

**Unity.Mathematics: **

- Offers a set of math functions and datatypes designed to be high-performance and optimized for real-time applications.
- Offers various matrix datatypes and vectors like 2D, 3D, and 4D vectors and projections, transformations, and other matrix operations.
- Offers interpolation functions for smooth transitioning between values over time, like cubic, linear, and spline interpolation.

Unity.Mathematicsby Unity-Technologies

The C# math library used in Unity providing vector types and math functions with a shader like syntax

Unity.Mathematicsby Unity-Technologies

C# 1259 Version:1.2.5 License: Others (Non-SPDX)

**Mathfs: **

- Includes functions for working with quaternions, a mathematical concept used for representing rotations in 3D space.
- Includes functions for testing intersections between geometric shapes like lines, spheres, and points.
- Includes functions for creating and testing bounding volumes used in game development for optimizing collision detection and other calculations.

**MathSharp: **

- Is an open source math library for C# which offers high-performance math functions for matrix and vector operations.
- Offers trigonometric functions like inverse trigonometric, sine, tangent, and cosine functions.
- Offers interpolation functions for smoothly transitioning between values over time, like cubic, spline, and linear interpolation.

MathSharpby john-h-k

A vector and matrix library written in C# using hardware intrinsics

MathSharpby john-h-k

C# 620 Version:Current License: Permissive (MIT)

**AngouriMath: **

- Is an open source symbolic math library for C# that offers various functions for algebraic manipulation, calculus, and other mathematical operations.
- Offers an extensible and flexible system to represent symbolic expressions that allow complex mathematical simplifications and operations.
- Offers a comprehensive set of tools and functions for symbolic math operations, making it best for applications that need precise mathematical manipulations and calculations.

AngouriMathby asc-community

New open-source cross-platform symbolic algebra library for C# and F#. Can be used for both production and research purposes.

AngouriMathby asc-community

C# 656 Version:v1.4-preview.3 License: Permissive (MIT)

**LockstepEngine: **

- Is an open source game engine for C# that offers a deterministic game loop designed for multiplayer games.
- Offers a deterministic game loop that ensures all players see the same game state simultaneously, regardless of their performance difference and local input.
- Provides a customizable input system that allows developers to handle diverse input types, like mouse, keyboard, and gamepad.

LockstepEngineby JiepengTan

A lockstep solution include lots of deterministic library (Math,Collision,Navmesh,BehaviorTree,Serialization ...)

LockstepEngineby JiepengTan

C# 405 Version:v0.5.0 License: No License