Andres Felipe Ospina
Juan Camilo Echeverry
This project implements a graphical interface for graphing mathematical functions or differential equations.
The input of any mathematical expression must be done in python syntax.
This doesn't work
3x+4
This works
3*x+4
For normal functions, x has to be the independant variable, and for differential equations are expected in the form of dy/dt=(...)
You can use mathematical expressions included in numpy and the math library, such as sin() or cos(), just express them as np.sin() for example.
This also works
2*np.sin(x)**2-3
All the dependencies are listed in the requirements.txt
file. To install them you can run this command inside a python virtual environment or install them globally if you prefer to do so.
pip install -r requirements.txt
Then just run the main file as normal.
python main.py
By default, the project uses a MySql database hosted in db4free.net. The structure of the database is the following: https://dbdiagram.io/d/6484d783722eb77494be2299.
If you want to use your own database, either local or hosted, look for the following line in the main.py file and change it to your needs. The class that contains the connector structure can also be modified, as well as the queries needed.
connector = sql.SqlConnector("host", "user", "userPassword", "databaseName")