The package was created following the example at https://python-packaging.readthedocs.io/en/latest/minimal.html.
Call make install
to install the package, and make test
to run a script using the package
myPyPkg.joke()
prints a joke by Flying Circus.myPyPkg.pythagorean(a, b)
calculates the length of the hypotenusec
, givena
andb
, the lengths of the triangle's other two sides, using the quationa^2+b^2=c^2
.myPyPkg.root(a, b, c)
returns the roots of the quandratic equationa*x**2+b*x+c=0
, and raises warning in case no real roots are available. I implemented an internal function,signPart
, to test how to selectively export functions in __init.py__file.
All functions have a simple docstring.