This PyDMath is a mathematical module, with this you can able to perform a mathematical operations which includes mensuration, permutation and combination. We can use any use any type of measurement units but the output will return in SI standard units. This makes differ from other Python modules.
- Mensuration
- Area
- Perimeter
- Volume
- Permutation
- Combination
Inputs must be a string seperated by "-" for value and the unit. Value on left side and unit on right side. If the input unit is in centimeter, millimeter, kilometer and meter then the output unit will always be meter.
from PyDMath import perimeter,area,volume
peri = perimeter()
ar = area()
vol = volume()
print(f"Perimeter of the shape {peri.circle('2-cm')}")
print(f"Area of the shape {ar.circle('2-cm')}")
print(f"Volume of the shape {vol.sphere('2-cm')}")Circle Square Rectangle Triangle Equilateral triangle Parallelogram Trapezium Isosceles triangle Rhombus
Sphere Cylinder Cube Rectangular prism Cone Hemi sphere Right rectangular prism
from PyDMath import fact,permutation,combination
# Factorial
print(fact(5))
perm = permutation()
co = combination()
print(perm.per(4,2))
print(co.comb(8,3))