py_everything.mensuration
¶
Source code: py_everything/mensuration.py
This module conatins functions for mensuration.
- py_everything.mensuration.areaRect(length, breadth)¶
Function to find the area of a rectangle
- Parameters
length (float) – Length of the rectangle
breadth (float) – Breadth of the rectangle
- Returns float area
Area of the rectabgle
- py_everything.mensuration.perimeterRect(length, breadth)¶
Function to find the perimeter of a rectangle
- Parameters
length (float) – Length of the rectangle
breadth (float) – Breadth of the rectangle
- Returns float perimeter
Perimeter of the rectangle
- py_everything.mensuration.areaSqr(side)¶
Function to find the area of a square.
- Parameters
side (float) – Side of the square
- Returns float area
Area of the square
- py_everything.mensuration.perimeterSqr(side)¶
Function to find the perimeter of a square
- Parameters
side (float) – Side of the square
- Returns float perimeter
Perimeter of the square
- py_everything.mensuration.areaTriangle(side)¶
Function to find the area of a triangle
- Parameters
base (float) – Base of the triangle
height (float) – Height of the triangle
- Returns float area
Area of the triangle
- py_everything.mensuration.perimeterTriangle(side1, side2, base)¶
Function to find the perimeter of a triangle
- Parameters
side1 (float) – Side 1 of the triangle
side2 (float) – Side 2 of the triangle
- Returns float perimeter
Perimeter of the triangle
- py_everything.mensuration.areaCirc(radius)¶
Function to find the area of a circle
- Parameters
radius (float) – Radius of the circle
- Returns float area
Area of the circle
- py_everything.mensuration.circumferenceCirc(radius)¶
Function to find the circumference of a circle
- Parameters
radius (float) – Radius of the circle
- Returns float area
Circumference of the circle
- py_everything.mensuration.volCyl(radius, height)¶
Functio to find the volume of a cylinder
- Parameters
radius (float) – Radius of the cylinder
height (float) – Height of the cylinder
- Returns float volume
Volume of the cylinder
- py_everything.mensuration.volCone(radius, height)¶
Function to find the volume of a cone
- Parameters
radius (float) – Radius of the cone
height (float) – Height of the cone
- Returns float volume
Volume of the cone
- py_everything.mensuration.volSphere()¶
Function to find the volume of a sphere
- Parameters
radius (float) – Radius of the sphere
- Returns float volume
Volume of the sphere
- py_everything.mensuration.volCube()¶
Function to find the volume of a cube
- Parameters
edge (float) – Edge of the cube
- Returns float volume
Volume of the sphere
- py_everything.mensuration.volCuboid()¶
Function to find the volume of a cuboid
- Parameters
length (float) – Length of the cuboid
breadth (float) – Breadth of the cuboid
height (float) – Height of the cuboid
- Returns float volume
Volume of the cuboid
- py_everything.mensuration.pival()¶
Function to get the value of pi
- Returns float pi
Value of pi
- py_everything.mensuration.eval_()¶
Function to get the value of e
- Returns float e
Value of e
Note
The name of the function is
eval_
and not justeval
.eval()
is an predefined function in python. Do not confuse this.