super-simle-mathjs

Simple math functions

Usage no npm install needed!

<script type="module">
  import superSimleMathjs from 'https://cdn.skypack.dev/super-simle-mathjs';
</script>

README

super-simle-mathjs


Installation:

npm i super-simle-mathjs

#or

yarn add super-simle-mathjs

Usage examples

Plus

const supermathjs = require("super-simle-mathjs");
let myPlus = supermathjs.plus(6); // return 12

Minus

const supermathjs = require("super-simle-mathjs");
let myPlus = supermathjs.minus(6); // return 0

Multiply

const supermathjs = require("super-simle-mathjs");
let myPlus = supermathjs.multiply(36); // return 4

Divide

const supermathjs = require("super-simle-mathjs");
let myPlus = supermathjs.divide(6); // return 1

Pow

const supermathjs = require("super-simle-mathjs");
let myPlus = supermathjs.degreePow(6); // return 36

Sqrt

const supermathjs = require("super-simle-mathjs");
let myPlus = supermathjs.degreeSqrt(6); // return 216