C++ Math

Open-source C++ projects categorized as Math

Top 23 C++ Math Projects

  1. 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.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. QuantLib

    The QuantLib C++ library

  4. CGal

    The public CGAL repository, see the README below

    Project mention: Cgal: A Powerful Open-Source Computational Geometry Library | news.ycombinator.com | 2024-08-06
  5. ceres-solver

    A large scale non-linear optimization library

    Project mention: High-Fidelity 3D Mesh Generation at Scale with Meshtron – Nvidia Technical Blog | news.ycombinator.com | 2024-12-16

    Texture coordinates can already be represented as a constrained minimization problem so it already is "solved" in the sense that you can brute force any quality level by putting enough CPU power into a solver like http://ceres-solver.org/

  6. Vc

    SIMD Vector Classes for C++

    Project mention: Understanding SIMD: Infinite Complexity of Trivial Problems | news.ycombinator.com | 2024-11-30

    I'm surprised no one has mentioned Vc. I found ispc clunky and not as performant, and std::simd didn't support some useful math ops like rsqrt. Vc has been around for years, I have no trouble including it in my codes, it has masking and many of the most useful math ops, and I can get over 1 TF/s on a consumer-grade Ryzen and at least 3 TF/s on the big Epyc CPUs.

    https://github.com/VcDevel/Vc

  7. symengine

    SymEngine is a fast symbolic manipulation library, written in C++

  8. primesieve

    🚀 Fast prime number generator

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. GamePhysicsCookbook

    Source code for Game Physics Cookbook

  11. 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.

  12. hlslpp

    Math library using HLSL syntax with multiplatform SIMD support

  13. gcem

    A C++ compile-time math library using generalized constant expressions

  14. rtm

    Realtime Math

  15. ExprTK

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

  16. XaoS

    Real-time interactive fractal zoomer

    Project mention: James Gleick's Chaos: The Software | news.ycombinator.com | 2024-11-16
  17. muparser

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

  18. primecount

    🚀 Fast prime counting function implementations

  19. Boost.Multiprecision

    Boost.Multiprecision

  20. safe_numerics

    Replacements to standard numeric types which throw exceptions on errors

  21. Sand-Table

    An open-source platform for building DIY sand tables (like the Sisyphus or ZenXY)

  22. Wykobi

    Wykobi C++ Computational Geometry Library https://www.wykobi.com

  23. maths

    Linear algebra library with vector swizzling, intersection tests and useful functions for games and graphics dev.

  24. FastAD

    FastAD is a C++ implementation of automatic differentiation both forward and reverse mode.

  25. YAWYSIWYGEE

    Yet another what-you-see-is-what-you-get equation editor

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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++ Math discussion

Log in or Post with

C++ Math 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
  • High-Fidelity 3D Mesh Generation at Scale with Meshtron – Nvidia Technical Blog

    1 project | news.ycombinator.com | 16 Dec 2024
  • Understanding SIMD: Infinite Complexity of Trivial Problems

    3 projects | news.ycombinator.com | 30 Nov 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
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Mar 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 GLM 9,696
2 QuantLib 5,752
3 CGal 5,274
4 ceres-solver 4,014
5 Vc 1,475
6 symengine 1,213
7 primesieve 988
8 GamePhysicsCookbook 943
9 MathParser.org-mXparser 917
10 hlslpp 779
11 gcem 765
12 rtm 749
13 ExprTK 733
14 XaoS 537
15 muparser 445
16 primecount 316
17 Boost.Multiprecision 210
18 safe_numerics 210
19 Sand-Table 184
20 Wykobi 171
21 maths 106
22 FastAD 104
23 YAWYSIWYGEE 92

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

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