Skip to content

lordpaijo/imeth.cpp

imeth

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.

Features

  • 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

Quick Start

Installation

git clone https://github.com/lordpaijo/imeth.cpp.git imeth
cd imeth
mkdir build && cd build
cmake ..
make -j
sudo make install

Basic Usage

#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;
}

Documentation

For complete installation instructions, API reference, usage examples, and more, visit the full documentation.

Contributing

Contributions are welcome! Submit pull requests, report issues, or suggest new features.

License

See the LICENSE file for details.


Remember: Stay high on math, not meth.

About

A math library I made for C++ because I'm high on math hahaha.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •