workings
v1.0.3
Published
MathforYou is a lightweight mathematics library for performing basic arithmetic operations. It includes functions for addition, subtraction, multiplication, division, and modulo operations.
Downloads
6
Readme
MathforYou - This is a maths library providing all math functions
MathforYou is a lightweight mathematics library for performing basic arithmetic operations. It includes functions for addition, subtraction, multiplication, division, and modulo operations.
Installation
To use MathforYou in your Node.js project, you can install it using npm:
npm install mathforYou
Then, you can include it in your project:
const MathforYou = require('mathforYou');
Usage
Addition
const sum = MathforYou.add(3, 5); // Output: 8
Subtraction
const difference = MathforYou.sub(10, 4); // Output: 6
Multiplication
const product = MathforYou.mul(2, 6); // Output: 12
Division
const quotient = MathforYou.div(8, 2); // Output: 4
Modulo
const remainder = MathforYou.mod(9, 4); // Output: 1
power
const remainder = MathforYou.pow(2, 3); // Output: 8
Contributing
If you'd like to contribute to MathforYou, please follow these steps:
Fork the repository.
Create a new branch for your feature or bug fix. Make your changes and commit them with a descriptive commit message. Push your changes to your fork. Submit a pull request.
License
MathforYou is licensed under the ISC License - see the LICENSE file for details.
Acknowledgments
Thank you for using MathforYou!-Rakesh