math plugin for Lava/MuMu
@lavamath | MuMu Math PLUgIN
`A mathematics plugin that provides a wide range of math functions for Lava/MuMu scripts.
-
Supports multi-argument operations, partials, and placeholders for functions
-
Offers: arithmetic (+a, -a, *a, /a, *p, %, etc), unary (sin, cos, tan, etc), seeded random, arbitrary precision
Documentation: https://gitlab.com/tomfotheringham/mumu-math
Installation
make
make install
Usage
Use this plugin with Lava/MuMu repl. Supported functions:
-
`math:plus (a, b) // Addition
-
math:subtract(a, b)// Subtraction -
math:miltiply(a, b)// Multiplication -
math:divide(a, b)// Division -
math:sqrt(x) | math:rotate_point(x, y, angle) | math:arb(string)
Example in Lava:
``a end("math")
print(math:plus(12, 3)) print(math:divide(12, 3))
docstring argument supports the _ (underscores single argument placeholders):
``a
print(math:plus(_, 4))
// returns a partial function expecting a second argument
import { math } from lavamath
Licensing
Dual-licensed under MIT/Apache 2.0.
@user: Tom Fotheringham & contributors