项目作者: knutkirkhorn

项目描述 :
Get the square and multiply of the base, the exponent and the modulus
高级语言: JavaScript
项目地址: git://github.com/knutkirkhorn/square-and-multiply.git
创建时间: 2017-11-19T21:14:01Z
项目社区:https://github.com/knutkirkhorn/square-and-multiply

开源协议:MIT License

下载


square-and-multiply

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

Installation

  1. npm install square-and-multiply

Usage

  1. import squareAndMultiply from 'square-and-multiply';
  2. console.log(squareAndMultiply(14, 27, 37));
  3. // => 6

API

squareAndMultiply(base, exponent, modulus)

Returns the square and multiply of base, exponent and modulus.