1.0.2 • Published 2 years ago

my-math-helper v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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 [].