/pyInterpreter

Interpreter written in Python

Primary LanguagePython

pyInterpreter

Interpreter written in Python

-Solve mathematical equations -Calculate mathematical formulas

-Supported:

  • +,-,*,/
  • parenthesis '(' - ')'
  • pow
  • log
  • sin,cos,tg,ctg
  • < , > , = , <= , =>
  • Assignment (example: x=5)

-Examples:

2+3*(1-4)+10*2 ->> 13

x = 3>5 ->> Memorized in dict (key = x : value = False)

x==True ->> False

x=10 ->> 2*x+3 ->> 23

Requirements:

  • pip install math