C++ Mathematics

Open-source C++ projects categorized as Mathematics

Top 22 C++ Mathematic Projects

Mathematics
  1. C-Plus-Plus

    Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
  3. GLM

    OpenGL Mathematics (GLM)

    Project mention: New Year, New Game Engine - Nikola Engine Devlog 0 | dev.to | 2025-02-26

    As for math, that was the easiest choice as of yet. No doubt, GLM is a "gold standard" at this point. For OpenGL it is, at least. But, like with a lot of the other APIs, I decided to build a wrapper around it rather than directly reference the library in the engine's code. And for physics, well, I had not come upon that answer just yet. I did try to make my own physics logic at some point. And while it was, surprisingly, successful, I wanted more than just a simple physics layer. I wanted something more complex and, more importantly, faster than my implementation. I have not decided upon a physics library yet. But I'll cross that bridge when I come to it.

  4. root

    The official repository for ROOT: analyzing, storing and visualizing big data, scientifically

  5. casadi

    CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.

  6. MathParser.org-mXparser

    Math Parser: Java, C#, C++, Kotlin, Android, and all .NET platforms (Nuget, Maven, CMake). Supports .NET Framework, .NET Core, .NET Standard, Xamarin, and more. Features: rich built-in library of math functions, operators, constants. Flexible in user-defined arguments, functions. Expressions provided as plain text. Easy to use. Well documented.

  7. ExprTK

    C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html

  8. muparser

    muparser is a fast math parser library for C/C++ with (optional) OpenMP support.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. fplll

    Lattice algorithms using floating-point arithmetic

  11. cadabra2

    A field-theory motivated approach to computer algebra.

  12. AlgoPlus

    AlgoPlus is a C++17 library with implemented data structures and algorithms for various topics(including machine learning)

  13. euler-fluid-cpp

    Euler fluid simulated with CPP and SFML

  14. fixed_math

    FixedMath: A High-Performance C++23, C++17 Library for Fixed-Point 48.16 Arithmetic

  15. gclc

    GCLC is a mathematical software tool for producing high-quality mathematical illustrations, for teaching mathematics, and for automated proving of geometry theorems. (by janicicpredrag)

  16. theoretica

    A C++ math library for scientific computing with a simple and elegant interface.

    Project mention: Improving Documentation in Theoretica | dev.to | 2024-11-11

    In my latest contribution to the open-source library Theoretica, I tackled Issue #81 focused on refining and enhancing the inline documentation for two central components: mat (the matrix class) and vec (the vector class). This issue was raised to improve the readability and usability of these classes, which are essential in mathematical computations and commonly used across various areas in the library. Proper documentation is key to making complex code accessible to other developers and contributors.

  17. Knots

    A tool for drawing 2d diagrams, 3d knots, Seifert surfaces. Computes some knot properties and invariants.

  18. OpenGL-Particle-Motion

    This project simulates the motion of electrons and protons using Coulomb's Law. The simulation is visually represented on-screen using OpenGL.

  19. tomorrow

    A small graphical calculator project. (by akiss-xyz)

  20. EUL

    The mathEmatics Useful Library (the name is a work in progress) is a math general purpose c++20 header library that, among other things, features a big integer implementation. (by ThePirate42)

  21. emel-lang

    The Emel programming language, a language for solving math problems

  22. quadelect

    Voting method exploration/simulation tool

  23. Socrates

    Socrates is a simple, single-file math library specifically made for game/game engine development (by FrodoAlaska)

    Project mention: New Year, New Game Engine - Nikola Engine Devlog 0 | dev.to | 2025-02-26

    The implementation code would effectively be copied into the translation unit and then compiled normally. I love these kind of libraries. They are usually easy to use, very easy to integrate, and a lightweight dependency overall. I even created a library or two in the same vain just for fun. But why am I talking about single-header libraries now? Besides the fact that most of my dependencies are single-header, I wanted to somewhat imitate the spirit of single-header libraries while avoiding the need to jumble all my code into one header file. While it is convenient to have all the code in one place and, once again, it would be very easy to integrate by other folks, but, seeing how I am already an unorganized person, I will refrain from the complexity that comes with such a design. Instead, I wanted to have separate translation units for every module, but keep the idea of a single-header file for the definitions. Let me explain.

  24. My-Hello-World-first-code-

    This function lists the permutations in which from the first arrangement, no student fights the same pair of students twice

  25. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Mathematics discussion

Log in or Post with

C++ Mathematics related posts

  • "A calculator app? Anyone could make that."

    9 projects | news.ycombinator.com | 16 Feb 2025
  • Updates to H-1B

    2 projects | news.ycombinator.com | 19 Dec 2024
  • Improving Documentation in Theoretica

    1 project | dev.to | 11 Nov 2024
  • Gamedev Math: Not Just A Tool But A Necessity

    2 projects | dev.to | 14 Oct 2024
  • How to render TrueType Fonts in OpenGL using stb_truetype.h

    3 projects | dev.to | 14 Sep 2024
  • Release of GLM 1.0.0

    1 project | news.ycombinator.com | 24 Jan 2024
  • What files from glm's github do I need to add to my emscripten project?

    1 project | /r/GraphicsProgramming | 13 Jun 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 2 Sep 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source Mathematic projects in C++? This list will help you:

# Project Stars
1 C-Plus-Plus 32,733
2 GLM 10,180
3 root 2,957
4 casadi 1,989
5 MathParser.org-mXparser 934
6 ExprTK 831
7 muparser 474
8 fplll 364
9 cadabra2 254
10 AlgoPlus 186
11 euler-fluid-cpp 98
12 fixed_math 83
13 gclc 63
14 theoretica 28
15 Knots 18
16 OpenGL-Particle-Motion 9
17 tomorrow 9
18 EUL 6
19 emel-lang 5
20 quadelect 3
21 Socrates 3
22 My-Hello-World-first-code- 0

Sponsored
Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?