Skip to main content

Equation visualizer.

Project description

veq

Veq, short for View Equation, 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, 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 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 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]
           equation

Visualize 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 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.

License

This project is licensed under GNU GENERAL PUBLIC LICENSE V3. View LICENSE for details.

Authors

  • Willow Ciesialka

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

veq-1.3.9-py2.py3-none-any.whl (24.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file veq-1.3.9-py2.py3-none-any.whl.

File metadata

  • Download URL: veq-1.3.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for veq-1.3.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9665fd0cc8d1a0b164df6c69c95e382d111e4617a1825f2c02a765be84302e72
MD5 3d2e9124a07d938277e5b9d4b1ab9ce3
BLAKE2b-256 04bbc2784e2cb9c55ccd12a9084173fc519963ac74209cd7f18727d340f7ad34

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page