Home - Waigo01/math_utils_lib GitHub Wiki

This repo/crate provides a number of math utilities:

  • Parsing and evaluating expressions containing a combination of matrices, vectors and scalars.
  • Solving equations and system of equations (both linear and non-linear).
  • Exporting a LaTeX document from a collection of parsed and evaluated expressions.

:warning: This repo/crate has not hit 1.0.0 yet, breaking changes are bound to happen!

Major features

  • Parsing and evaluating calculations with matrices, vectors and scalars.
  • Generic number implementation for scalars. Allowing for different number types with custom FromStr parsers and calculation rules.
  • A recursive parsing implementation allowing for calculations withing matrices and vectors.
  • An inbuilt equation solver for solving linear and non-linear systems of equations, accessible through a custom "function".
  • An evaluator based on combinatorics for combining multiple results from equations or sqrts with other operations.
  • Assigning values to variables and defining custom functions.
  • Custom functions with side effects.
  • Boolean operations (==, <, >, etc.).
  • Conditional statements.
  • Inbuilt quality of life functions for exporting results to latex.