formularize
v1.0.0
Published
eliminate the hassle of remembering math formulas and formularize yourself with them
Downloads
9
Maintainers
Readme
What is Formularize
Formularize is specifically designed to eliminate the hassle of remembering math formulas in order to perform calculations in your projects. This package features a list of the commonly used math formulas ranging from areas and volumes of various shapes. Happy formularizing!!!
Getting Started
You can import the formularize package by typing the following line of code below in your javascript file
import * as formulas from "formularize"
This will import all the mathematical functions contained within the package and make it accessible under the name formulas.
Then if you need to call a specific function you can access the function name using formulas.<name>
.
Also you can import a specific function by typing the following javascript code below
import { areaOfRectangle } from "formularize"
This will import the specific function in the current javascript file giving you the ability to call the function.
Please note that upon invoking the function you will see a vscode intellisense popup which will indicate the number of parameters and an example usage of the function. In addition all of the functions has a type checking to ensure that the arguments specified are two integers.
Math Formulas
Areas
areaOfRectangle()
areaOfSquare()
areaOfTriangle()
areaOfTrapezoid()
areaOfPolygon()
areaOfCircle()
areaOfCone()
areaOfSphere()
areaOfRhombus()
Volumes
volumeOfCube()
volumeOfParallelepiped()
volumeOfPrism()
volumeOfCylinder()
volumeOfCone()
volumeOfSphere()
Perimeters
perimeterOfCircle()