my-math-helper
v1.0.2
Published
Package helps you implement various mathematics operations
Downloads
6
Maintainers
Readme
What is this?
Package helps you implement various mathematics operations
Installation
Run npm i my-math-helper
Use:
import * as Math from 'my-math'*
Math.areaSquare(side);
Math.perimeterSquare(side);
Math.areaRectangle(side);
Math.perimeterRectangle(side);
Math.volumeCuboid(length, breath, height);
Math.totalSurfaceAreaCuboid(length, breath, height);
Math.curvedSurfaceAreaCuboid(length, breath, height);
Math.volumeCube(side);
Math.surfaceAreaCube(side);
Math.findProfitLoss(sellingprice, costprice);
Math.findMean(array);
Math.findMedian(array);
Math.findMode(array);
Parameters
This takes one parameter, side.
By default side
is set to 0.
By default length
is set to 0.
By default breath
is set to 0.
By default heigth
is set to 0.
By default selling price
is set to 0.
By default cost price
is set to 0.
By default array
is set to [].