A lightweight C++ math library for exploring computational mathematics while testing the limits of the author's C++ skills (and sanity).
I + METH – Because I'm high on math equations like a guy high on meth.
- Arithmetic Operations: Basic arithmetic calculations
- Linear Algebra: Equation solving, matrix operations, and more
- Combinatorics: Combinatorics operations and sequences.
- Shape Calculations: 2D and 3D geometric operations
- Base Conversions and Operations: Convert and operate on numbers between different bases
- Modular Design: Clean, organized API with namespace separation
git clone https://github.com/lordpaijo/imeth.cpp.git imeth
cd imeth
mkdir build && cd build
cmake ..
make -j
sudo make install#include <imeth/operation/arithmetic.hpp>
#include <imeth/linear/algebra.hpp>
int main() {
// Simple arithmetic
double result = imeth::Arithmetic::add(5, 3);
// Solve linear equation: 2x + 4 = 0
auto solution = imeth::LinearAlgebra::solve_1v(2, 4);
return 0;
}For complete installation instructions, API reference, usage examples, and more, visit the full documentation.
Contributions are welcome! Submit pull requests, report issues, or suggest new features.
See the LICENSE file for details.
Remember: Stay high on math, not meth.