1.0.0 • Published 5 months ago
simple-equations v1.0.0
SimpleMaths
A simple math operations package for basic arithmetic that supports multiple numbers.
Installation
npm install simple-equations
Usage
const { math } = require('simple-equations');
// Addition with multiple numbers
console.log(math.add(2, 2, 3, 4)); // Output: 11
// Subtraction with multiple numbers (from left to right)
console.log(math.subtract(20, 5, 3, 2)); // Output: 10
// Multiplication with multiple numbers
console.log(math.multiply(2, 3, 4)); // Output: 24
// Division with multiple numbers (from left to right)
console.log(math.divide(100, 2, 5)); // Output: 10
1.0.0
5 months ago