Crates.io | math-mumu |
lib.rs | math-mumu |
version | 0.1.3 |
created_at | 2025-07-08 12:05:09.289995+00 |
updated_at | 2025-08-17 14:51:55.632201+00 |
description | Math functions plugin for the Mumu / Lava language |
homepage | https://lava.nu11.uk |
repository | https://gitlab.com/tofo/mumu-math |
max_upload_size | |
id | 1742558 |
size | 115,407 |
@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
make
make install
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
Dual-licensed under MIT/Apache 2.0.
@user: Tom Fotheringham & contributors