Skip to content

This PyDMath is a mathematical module, with this you can able to perform a mathematical operations which includes mensuration, permutation and combination.

Notifications You must be signed in to change notification settings

Dhamu785/PyDMath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))

About

This PyDMath is a mathematical module, with this you can able to perform a mathematical operations which includes mensuration, permutation and combination.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages