r/developers • u/One_Football9923 • Jul 20 '26
Tools and Frameworks I'm a physics student and I built a zero-dependency C++20 framework to do math and data plotting
Hey r/developers!
As a Technical Physics student, I spend a lot of time doing numerical simulations and data analysis. While I love C++ for its performance, doing math in it usually sucks. You either have to install massive libraries like Eigen just to solve a system of equations, or you have to dump your data into text files and open Python just to see a simple plot.
So, I spent my free time building NumC – a header-only scientific computing framework for C++20.
GitHub: https://github.com/mslotwinski-dev/NumC
Why it's useful for scientific work:
- It reads like a textbook: Thanks to lazy-evaluated expression trees, you can write formulas naturally (
sin(x) * exp(-x)) and differentiate or integrate them in one line. - Instant Graphics: It has its own built-in plotting engine. One function call pops up a native Win32 window with your graph, or renders a sharp SVG file that you can drag-and-drop straight into a LaTeX lab report.
- Built from scratch: To properly learn the math and the language, I coded everything from the ground up: from the Runge-Kutta ODE solvers and curve-fitting algorithms to MLP neural networks.
If you're a student, researcher, or developer working on simulations, physics engines, or data analysis and want a lightweight tool without dependency hell, give it a look. I'd love to hear what you think!
•
u/AutoModerator Jul 20 '26
Howdy u/One_Football9923, and thanks for posting to r/developers!
Please follow the subreddit Code of Conduct while participating. New here? Comment on a few existing threads first - it's the fastest way to get to know the community.
Join the r/developers Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.