Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wciesialka/veq
pygame based equation viewer.
https://github.com/wciesialka/veq
graphing-calculator math pygame python
Last synced: about 10 hours ago
JSON representation
pygame based equation viewer.
- Host: GitHub
- URL: https://github.com/wciesialka/veq
- Owner: wciesialka
- License: gpl-3.0
- Created: 2021-12-16T21:57:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T10:04:45.000Z (over 1 year ago)
- Last Synced: 2024-11-10T07:08:41.650Z (5 days ago)
- Topics: graphing-calculator, math, pygame, python
- Language: Python
- Homepage: https://pypi.org/project/veq/
- Size: 381 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# veq
Veq, short for **V**iew **Eq**uation, is a pygame based application for graphing equations.Note: If you are viewing this README from PyPI, you may be unable to properly open links. Please check the README on the [GitHub page](https://github.com/wciesialka/veq), instead.
## Getting Started
### Installation
The recommended way to install the most up-to-date version of this project is by cloning the respository and running `setup.py install`. This allows you to control which branch you install as well. This may not always guarantee a stable release, however.
You can also use pip to install the recommended release from [PyPI](https://pypi.org/project/veq/) with `pip install veq`.
### Requirements
It is recommended you use the most recent stable version of Python. This project was built using Python 3.8.10. Dependencies are listed in [requirements.txt](requirements.txt) and should be installed when running `setup.py`.
### Running
Running the application can be done through the console script entry point `veq` or through `python3 -m veq`. The application takes the following command-line arguments:
```
usage: veq [-h] [--debug] [-s n] [-a] [-p PRECISION] [-d DOMAIN] [-r RANGE]
equationVisualize an equation.
positional arguments:
equation Equation to plot.optional arguments:
-h, --help show this help message and exit
--debug Enable debug logging.
-s n, --step n Enable gridlines with step n
-a, --noaxis Disable axis.
-p PRECISION, --precision PRECISION
Number precision for text formatting.
-d DOMAIN, --domain DOMAIN
Initial domain.
-r RANGE, --range RANGE
Initial range.
```## Features
Expressions will be evaluated and graphed with `y = f(x)` over a set domain and range. You can view exactly where a point falls on an equation by hovering over the line. You can also find the corresponding y-value to an x-value by moving the mouse. You can save one point for reference.
### Syntax
See [OPERATIONS.md](OPERATIONS.md) for valid operations.
### Controls
The following controls are supported:
| control | action |
| ------- | ------ |
| Left Mouse Button | Save point. |
| Mouse Right-Click Drag | Move view by changing domain and range. |
| Mouse Wheel Up | Zoom in by decreasing domain and range. |
| Mouse Wheel Down | Zoom out by increasing domain and range. |
| + | Zoom in by decreasing domain and range. |
| - | Zoom out by increasing domain and range. |
| R | Reset domain and range. |
| SHIFT-R | Reset variable t. |
| Left/Right Arrow | Shift domain left/right. |
| Up/Down Arrow | Shift range up/down. |## Documentation
Documentation is supplied through Sphinx Auto-Doc and is available on [readthedocs](https://veq.readthedocs.io/en/latest/index.html).
## License
This project is licensed under GNU GENERAL PUBLIC LICENSE V3. View [LICENSE](LICENSE) for details.
## Authors
- Willow Ciesialka