math-mumu

Crates.iomath-mumu
lib.rsmath-mumu
version0.1.3
created_at2025-07-08 12:05:09.289995+00
updated_at2025-08-17 14:51:55.632201+00
descriptionMath functions plugin for the Mumu / Lava language
homepagehttps://lava.nu11.uk
repositoryhttps://gitlab.com/tofo/mumu-math
max_upload_size
id1742558
size115,407
(justifiedmumu)

documentation

README

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

Commit count: 0

cargo fmt