# cm-math-lib

> custom js library for math functions & finance calculations

Latest version **1.0.1** (published 2021-04-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install cm-math-lib
pnpm add cm-math-lib
yarn add cm-math-lib
bun add cm-math-lib
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-04-17 |
| First published | 2021-04-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chirag mahawar |
| Maintainers | chirag_mahawar |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2021-04-17
- 1.0.0 — 2021-04-17

## README

# Custom js Library for math functions & Finance calculations

To run, follow these steps-
* Open your preferred terminal (or command prompt) and install the npm package by runnning the code:
 ```
 npm install -g cm-math-lib
 ```
 
* After installation is complete, use the library functions in your project as given below-
```
const mathLib = require("math-lib");

//print square of 5 ie 25
console.log(math.square(5));

//print 2 to the power of 5 ie 32
console.log(math.power(2,5));

//print simple interest where principal = 1000, rate = 2, time period = 2
console.log(math.simpleInterest(1000,2,2));

//print compound interest where principal = 1000, rate = 3, time = 7, no of time interest is compounded = 6
console.log(math.compoundInterest(1000,3,7,6));
```

---

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