methematician
v0.1.51
Published
A WebAssembly package for basic mathematical operations using Rust.
Readme
About
This project is a WebAssembly package for basic mathematical operations, written in Rust and compiled to WebAssembly using wasm-pack. It provides a simple API for performing addition, subtraction, multiplication, and division.
🚀 Getting Started
Installation
npm install methematicianUsage
Here is an example of how to use the Mathematician class in a JavaScript project:
import { Mathematician } from 'methematician';
async function run() {
const m = Mathematician.new(10, 5);
console.log("10 + 5 =", m.add());
console.log("10 - 5 =", m.sub());
console.log("10 * 5 =", m.mul());
console.log("10 / 5 =", m.div());
}
run();