npm.io
2.0.0 • Published 3 years ago

square-and-multiply

Licence
MIT
Version
2.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
1

square-and-multiply

Get the square and multiply of the base, the exponent and the modulus

Installation

npm install square-and-multiply

Usage

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.

Keywords