Skip to content

Jonwyp/math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math

A simple math library

Install

npm install @jonwyp/math

Usage

const math = require(@jonwyp/math)
const result = math.add(1, 1)

API

Addition - 'math.add(...numbers)'

Subtraction - 'math.subtract(minuend, ...subtrahend)'

Multiplication - 'math.multiply(...numbers)'

Division - 'math.divide(divisor, dividend)'

Exponentiation - 'math.powerOf(base, exponent)'

Publish or update package on npm

  1. Edit package
  2. Commit changes and push to remote repository
  3. Bump up version with 'npm version <major|mninor|patch>'
  4. Publish on npm with 'npm publish --access publish'

About

A simple math library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published