math-formulas

1.0.5 • Public • Published

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)

✉️ For more information on how to integrate into your project contact - hsetia94@gmail.com

Package Sidebar

Install

npm i math-formulas

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

3.47 kB

Total Files

3

Last publish

Collaborators

  • himanish_setia