Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 1.71 KB

README.md

File metadata and controls

50 lines (45 loc) · 1.71 KB

PyDMath Version - 0.1

Introduction

           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.

Math topics included till now

  • Mensuration
    • Area
    • Perimeter
    • Volume
  • Permutation
  • Combination

Input and Output format

           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.

Mensuration

Sample code

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')}")

Shapes including

Perimeter and Area

Circle Square Rectangle Triangle Equilateral triangle Parallelogram Trapezium Isosceles triangle Rhombus

Volume

Sphere Cylinder Cube Rectangular prism Cone Hemi sphere Right rectangular prism

Permutation and Combination

Sample code

from PyDMath import fact,permutation,combination
# Factorial
print(fact(5))
perm = permutation()
co = combination()
print(perm.per(4,2))
print(co.comb(8,3))