Skip to content

plots an arbitrary user-entered function e.g., 5x^3 + 2x through Python GUI

Notifications You must be signed in to change notification settings

Mohamed-Nabi1/Function-Plotter-Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

Project's Title

  • "Function Plotter"

Project Description

  • Take a function of x from the user, e.g., 5x^3 + 2x.
  • Take min and max values of x from the user.
  • The supported operators : + - / * ^.
  • Then plots an arbitrary user-entered function through Python GUI.
  • when the user enters the wrong input, display messages to explain any wrong input.

Running the Project

To run this project, you'll need to have the following libraries installed:

  • Pyside2
  • Matplotlib
  • pytest
  • pytest-qt

You can install these libraries using pip. First, make sure that pip is installed on your system. Then, run the following commands:

pip install pyside2
pip install matplotlib
pip install pytest
pip install pytest-qt

Once you have installed these libraries, you can run the project by running the main.py file.

python main.py

Running the Tests

To run the tests for this project, navigate to the project directory in your terminal and run the following command:

pytest

Working and Wrong Examples

  • Working Examples

    • start and linear function

    • working function

    • constant function

  • Wrong Examples

    • Function error

    • min >= max error

Tools

  • Python
  • pyside2
  • pytest

About

plots an arbitrary user-entered function e.g., 5x^3 + 2x through Python GUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages