square-and-multiply
v2.0.0
Published
Get the square and multiply of the base, the exponent and the modulus
Downloads
29
Readme
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
.
Related
- square-and-multiply-cli - CLI for this module