# math-basics

> A dependecy of mathematical functions

Latest version **1.1.0** (published 2023-03-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install math-basics
pnpm add math-basics
yarn add math-basics
bun add math-basics
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-03-20 |
| First published | 2022-09-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=1.0.0 |
| Dependencies | 1 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JulianReyes35 |
| Maintainers | julianreyes35 |
| Keywords | math, basic, math-basic |

## Links

- npm: https://www.npmjs.com/package/math-basics
- npm.io page: https://npm.io/package/math-basics

## Dependencies (1)

- [math-basics](https://npm.io/package/math-basics.md) 1.0.9

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2023-03-20
- 1.0.9 — 2023-03-17
- 1.0.8 — 2022-12-20
- 1.0.7 — 2022-12-15
- 1.0.6 — 2022-11-10
- 1.0.5 — 2022-10-02
- 1.0.4 — 2022-09-21
- 1.0.3 — 2022-09-17
- 1.0.2 — 2022-09-10
- 1.0.0 — 2022-09-10
- 1.0.1 — 2022-09-08

## README

# MathBasics v1.0.9
MathBasics is a package of math that has functions like add, substract, multiplication, etc.

## Install
```bash
npm install math-basics@latest
yarn add math-basics@latest
pnpm add math-basics@latest
```
## Examples
### CJS Example:
```js
const math = require('math-basics');
console.log(math.add(3, 2)); // Output: 5
console.log(math.sub(6, 3)); // Output: 3
console.log(math.mult(7, 6)) // Output: 42
console.log(math.div(27, 9)) // Output: 3
console.log(math.pow(3, 2)) // Output: 9
console.log(math.root(4, 256)) // Output: 4
console.log(math.randomArray([ 'one', 'two', 'three' ])) // Output: 'one'
console.log(math.round(3.5)) // Output: 4
console.log(math.fround(10.3)) // Output: 10.300000190734863
console.log(math.factorial(3)) // Ouput: 6
console.log(math.randomNumber()) // Output: 47
console.log(math.average(9.1, 10, 27, 8.9, 90.5, 3.4)) // Output: 24.81666666...
```
### ESM Example:
```js
import math from 'math-basics';
console.log(math.add(3, 2)); // Output: 5
console.log(math.sub(6, 3)); // Output: 3
console.log(math.mult(7, 6)) // Output: 42
console.log(math.div(27, 9)) // Output: 3
console.log(math.pow(3, 2)) // Output: 9
console.log(math.root(4, 256)) // Output: 4
console.log(math.randomArray([ 'one', 'two', 'three' ])) // Output: 'one'
console.log(math.round(3.5)) // Output: 4
console.log(math.fround(10.3)) // Output: 10.300000190734863
console.log(math.factorial(3)) // Ouput: 6
console.log(math.randomNumber()) // Output: 47
console.log(math.average(9.1, 10, 27, 8.9, 90.5, 3.4)) // Output: 24.81666666...
```

---
_Source: https://npm.io/package/math-basics · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
