Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 499 Bytes

File metadata and controls

22 lines (20 loc) · 499 Bytes

Calculus

Calculus is a simple calculator interpreter written in python.

Features

Calculus supports variable declarations, logic operations and different notations types: Infix, Postfix and Prefix notations are three different but equivalent ways of writing expressions. To change notation just type command INFIX, PREFIX or POSTFIX.

Commands

INFIX --> x=3
3
INFIX --> 2+(4*3)
14
INFIX --> POSTFIX
POSTFIX --> y 9 =
9
POSTFIX --> y 1+
10
POSTFIX --> INFIX
INFIX --> y<x
False