https://github.com/git-ced/calculate
Fast, lightweight, and extinsible mathematical and statistical functions.
https://github.com/git-ced/calculate
Last synced: 10 months ago
JSON representation
Fast, lightweight, and extinsible mathematical and statistical functions.
- Host: GitHub
- URL: https://github.com/git-ced/calculate
- Owner: git-ced
- License: mit
- Created: 2020-04-20T17:50:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:52:51.000Z (about 3 years ago)
- Last Synced: 2025-03-29T21:41:24.621Z (11 months ago)
- Language: TypeScript
- Homepage: https://git-ced.github.io/calculate-docs/
- Size: 622 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @princedev/calculate
> Fast, lightweight, and extinsible mathematical and statistical functions.
[](https://www.npmjs.com/package/@princedev/calculate)




## Table of Contents
- [Installation](#installation)
- [Import](#import)
- [Usage](#usage)
- [Authors](#authors)
- [Changelog](#changelog)
- [License](#license)
## Installation
This library is available through the [npm registry](https://www.npmjs.com/).
NPM
```bash
$ npm -i @princedev/calculate
```
Yarn
```bash
$ yarn add @princedev/calculate
```
## Import
Start using it by importing the library first.
### CommonJS
```javascript
const calculate = require('@princedev/calculate');
```
### ES6
```javascript
import { sum } from '@princedev/calculate';
```
## Usage
**Getting the sum of given numbers.**
```javascript
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.**
```javascript
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](https://git-ced.github.io/calculate-docs/) for more.
## Authors
- [Prince Neil Cedrick Castro](https://github.com/git-ced/) - Initial work
See also the list of [contributors](https://github.com/git-ced/calculate/contributors) who participated in this project.
## Changelog
[Changelog](https://github.com/git-ced/calculate/releases)
## License
[MIT](LICENSE)