A calculator, linked to trees
- Download python 3.10 from here
- Download this repository using
git cloneor the download button - Open a terminal in the folder where you downloaded the repository
- Run
python -m pip install -r requirements.txtto install the dependencies - Run
python main.pyto start the program
- Calculate the value of an expression, you can for example calculate the value of
5(8-2)without any problem - Solve basic equations, for example
4x-2=10will be solved to3- Only developed equations are supported, for example
x(x+1)=4will give the wrong result, may be fixed later
- Only developed equations are supported, for example
- Derive expressions, for example
sqrt(x)will be derived to1/2sqrt(x) - And the coolest feature, you can draw your expressions, here is the result of
6+(4-2)*3:
All this calculator works with trees, expressions are converted to trees and then calculated, derived or drawn. For now, you can only use infix expressions, but we plan to add support for prefix and postfix expressions.
Here is the application interface:
You can resize the windows to your liking, the interface will adapt to the size of the window.
Ambiguous buttons are listed here, the other are just easy to understand
C: Clear the input (and the old result)DEL: Delete the last character of the inputd/dx: Derive the inputx^n: Add^to the input (for example2^3will be8)x: Addxto the inputDraw: Draw the input into a treeHist.: Switch to the history tab=: Add=to the inputEXE: Calculate the input (or solve the equation, depending on the presence of=in the expression)


