plain-math

Simple Math!

Usage no npm install needed!

<script type="module">
  import plainMath from 'https://cdn.skypack.dev/plain-math';
</script>

README

Simple Calculator

Installation

you can install it by typing npm i plain-math

Guide

You can use it like this

const calc = include('plain-math');

let result = calc.add(2, 3);

console.log(result);

All methods

Add

calc.add(x, y);

Subtract

calc.sub(x, y); 

Divade

calc.div(x, y);

Multiply

calc.multi(x, y) 

Cosinus

calc.cos(x); 

Tanget

calc.tan(x); 

Absolute

calc.abs(x);