math-formulas
v1.0.5
Published
Mathematical volume and area formulas
Downloads
5
Maintainers
Readme
Mathematical Formulas
Math formula is a bundle having all the 2D and 3D figure area formulas.
Getting Started
Install dependencies
$ npm install --save math-formulas
Import module
const formulas = require('math-formulas');
console.log('Square Area ', formulas.squareArea(20));
console.log('Rectange Area ', formulas.rectangleArea(10, 20));
// Square Area 400
// Rectangle Area 200
Some of the functions are as follows:
squareArea(side)
rectangleArea(length, bredth)
triangleArea(base, height)
circleArea(radius)
cubeSurfaceArea(side)
cubeTotalSurfaceArea(side)
cuboidSurfaceArea(length, bredth, height)
cuboidTotalSurfaceArea(length, bredth, height)
cylinderSurfaceArea(radius, height)
cylinderTotalSurfaceArea(radius, height)
coneSurfaceArea(radius, slantHeight)
coneTotalSurfaceArea(radius, slantHeight)
sphereSurfaceArea(radius)
sphereTotalSurfaceArea(radius)
hemisphereSurfaceArea(radius)
hemisphereTotalSurfaceArea(radius)
:envelope: For more information on how to integrate into your project contact - [email protected]