MtPy - Advanced math functions with Python.
Overview
MtPy is a package that simplifies the use of advanced math functions in Python. MtPy contains:
- Trigonometric and hiperbolic ratios functions.
- A triangle solving algorithm witch can solve any type of triangle given enought data in any combination.
- Other geometry functions.
- Complex numbers math funcitons.
- Other general-use math funcitons.
- MtPy solves some commputing errors witch make math give wrong results in specific situations.
- MtPy handles MATH ERRORS for which math gives nonsense results.
- MtPy can work both with radians and degrees.
- MtPy can operate with complex numbers.
- MtPy has functionalities witch implementation would take hundreads of lines of code to implement with math.
You can check out the math library here.
Examples:Computing error correction:
>>> math.tan(math.radians(90))
1.633123935319537e+16
>>> MtPy.tan.deg(90)
MATH_ERROR
MATH ERROR handling:
>>> math.sin(math.radians(180))
1.2246467991473532e-16
>>> MtPy.sin.deg(180)
0.0
Multiple units of measurement:
>>> MtPy.sin.deg(90)
1.0
>>> MtPy.sin.rad(0.5*MtPy.pi)
1.0