Skip to content

juank0205/python-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-graph

AUTHORS

Andres Felipe Ospina
Juan Camilo Echeverry

About

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=(...)

Mathematical expressions

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

Installation

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

Database

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")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages