Skip to content

Fast, lightweight, and extinsible mathematical and statistical functions.

License

Notifications You must be signed in to change notification settings

git-ced/calculate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@princedev/calculate

Fast, lightweight, and extinsible mathematical and statistical functions.

NPM npm bundle size (scoped) npm bundle size (scoped version) Libraries.io dependency status for latest release, scoped npm package NPM

Table of Contents

Installation

This library is available through the npm registry.

NPM

$ npm -i @princedev/calculate

Yarn

$ yarn add @princedev/calculate

Import

Start using it by importing the library first.

CommonJS

const calculate = require('@princedev/calculate');

ES6

import { sum } from '@princedev/calculate';

Usage

Getting the sum of given numbers.

import { sum } from '@princedev/calculate';

sum(12,24);
// output: 36

sum(12,24,36,48,60,72,84,96,108,120,132);
// output: 792

sum(...[12,24,36,48,60,72,84,96,108,120,132]);
// output: 792

Can also be done in this way.

import calculate from '@princedev/calculate';

calculate.sum(12,24);
// output: 36

calculate.sum(12,24,36,48,60,72,84,96,108,120,132)
// output: 792

Read the docs for more.

Authors

See also the list of contributors who participated in this project.

Changelog

Changelog

License

MIT

About

Fast, lightweight, and extinsible mathematical and statistical functions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published