BetterMaths

Python mathematics made easier


Keywords
better, easier, easy, math, mathematics, simple, bettermath, python
License
MIT
Install
pip install BetterMaths==0.0.4

Documentation

BeterMaths Banner

MIT License

Warning

This module is in beta phase

Little documentation

This module add Equation class that allow resolve equation in string

# Create an equation
equation = Equation("2+7*8cos(3)")
# Resolve this equation
equation.result() # 57.92325394625613

Why use Equation and not eval ?

  • Equation is faster than eval (See tests/main.py)
  • Equation support parenthese, mathematical formulas like cos and magics numbers like Ï€

See the Wiki for more documentations

Instalation

Open your terminal and put pip install BetterMaths
For upgrade the version, put pip install --upgrade BetterMaths

Contribution

BetterMaths accepts community contributions!
This contributions must case no error tests folder. Launch init file, put y for take your changes and checks if there are error.

Authors