MtPy - Advanced math functions with Python.

Overview

MtPy is a package that simplifies the use of advanced math functions in Python. MtPy contains:

Why is MtPy different from the math library?

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