Getting Started
Maths.js gives you practical statistics and numeric helpers without a heavyweight dependency.
Install
Section titled “Install”npm install @peterbenoit/mathsjsUse in Node
Section titled “Use in Node”const Maths = require('@peterbenoit/mathsjs');
console.log(Maths.avg(10, 20, 30)); // 20console.log(Maths.median(1, 3, 2)); // 2Use in Browser
Section titled “Use in Browser”<script src="/path/to/Maths.js"></script><script> console.log(Maths.sum(1, 2, 3)); // 6</script>Next Steps
Section titled “Next Steps”- Continue with Browser Usage for script-tag patterns.
- Continue with Node Usage for package-based usage.
- Check API Reference for all methods and signatures.