https://github.com/knutkirkhorn/square-and-multiply
Get the square and multiply of the base, the exponent and the modulus
https://github.com/knutkirkhorn/square-and-multiply
and api math multiply nodejs square
Last synced: about 1 month ago
JSON representation
Get the square and multiply of the base, the exponent and the modulus
- Host: GitHub
- URL: https://github.com/knutkirkhorn/square-and-multiply
- Owner: knutkirkhorn
- License: mit
- Created: 2017-11-19T21:14:01.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T22:47:45.000Z (about 3 years ago)
- Last Synced: 2025-11-27T10:41:04.558Z (6 months ago)
- Topics: and, api, math, multiply, nodejs, square
- Language: JavaScript
- Homepage:
- Size: 210 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# square-and-multiply
> Get the square and multiply of the base, the exponent and the modulus
## Installation
```
npm install square-and-multiply
```
## Usage
```js
import squareAndMultiply from 'square-and-multiply';
console.log(squareAndMultiply(14, 27, 37));
// => 6
```
## API
### squareAndMultiply(base, exponent, modulus)
Returns the square and multiply of ```base```, ```exponent``` and ```modulus```.
## Related
- [square-and-multiply-cli](https://github.com/knutkirkhorn/square-and-multiply-cli) - CLI for this module