1.0.0 • Published 5 years ago

basic-math-by-abhay v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

A basic math formula package

this package contains formula for the area and perimeter and volume of shapes in geometry

supported formulae are

  • Circle

    • Area

      areaCircle(radius)
      
      it expects a varible as parameter which is the radius of circle
      and returns a float type integer
    • Perimeter

      perimeterCircle(radius)
      
      This function also expects an integer value for the radius of the circle and returns the paramter of the circle in a float type integer
  • Square

    • Area

      areaSquare(side)
      
          This functions returns one variable for the side of the square and returns the area of the square
    • Perimeter

      perimeterSquare(side)
      
          This functions take side as a variable and returns the perimeter of the square
  • Triangle

    • Area

      areaTriangle(base , height)
      
      This function takes base and height as parameter and returns the area of the triangle
  • Rectangle

    • Area

       areaRect(length,breadth)
      
      This function take length and breadth as parameter and then returns the value of the area of the recatngle
    • Perimeter

       perimeterRect(length,breadth)
      
      This function take length and breadth as parameter and then returns the value of the perimeter of the recatngle
  • Trapezoid

        areaTrapezoid(base1,base2,height);
  • volumeCube

        volumeCube(side)
  • volumeBox

    volumeBox(l,w,h)
  • sphere

    volumeSphere(radius)
  • Traingular Prism

    triangularPrism(base,height,Height)
  • volumeCylinder

    volumeCylinder(radius,height)