Abdullah Graph Equation
A Python package for graphing mathematical equations from string input.
Installation
pip install abdullah_graph_eq
Usage
from abdullah_graph_eq import graph_equation
# Graph a simple quadratic equation
graph_equation("x**2 + 2*x + 1")
# Graph a trigonometric function
graph_equation("sin(x)")
# Graph with custom range
graph_equation("x**3 - 2*x**2 + x - 1", x_range=(-5, 5))
# Save the plot
graph_equation("cos(x) + sin(2*x)", save_path="my_graph.png")
Features
- Parse mathematical equations from strings
- Support for common mathematical functions (sin, cos, tan, log, exp, etc.)
- Customizable plotting range
- Save plots to files
- Support for multiple equation formats
Supported Functions
- Basic arithmetic:
+,-,*,/,**(power) - Trigonometric:
sin,cos,tan,asin,acos,atan - Exponential/Logarithmic:
exp,log,ln,log10 - Other:
sqrt,abs
Examples
Linear Function
graph_equation("2*x + 3")
Quadratic Function
graph_equation("x**2 - 4*x + 3")
Trigonometric Function
graph_equation("sin(x) + cos(2*x)")
Complex Function
graph_equation("exp(-x**2) * sin(5*x)")
Requirements
- Python 3.7+
- matplotlib
- numpy
- sympy
License
MIT License
Metadata
Release files for abdullah-graph-eq 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| abdullah_graph_eq-0.1.0.tar.gz | 6.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abdullah_graph_eq-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.8 kB
Release files / abdullah_graph_eq-0.1.0.tar.gz
| Download URL | abdullah_graph_eq-0.1.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65a74ae2ecb08bd92dc6418d7f43d0c4e9500e3dec5a3854896284e00854a9c3
|
|
BLAKE2b-256 checksum How to use checksums |
f1fb853fcab96a836ff7fc98ecb89ef2b387e2d3a376682fe640d44e772bad72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Release files / abdullah_graph_eq-0.1.0-py3-none-any.whl
| Download URL | abdullah_graph_eq-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
665fd278b6cb644f45c9b80463e3e883a3ba1b3d42de871248a46c5a0258ff79
|
|
BLAKE2b-256 checksum How to use checksums |
d9eae22e548aee217106f62fdf088c8409e2bb8fd49223ef543629e969991ce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Security for abdullah-graph-eq 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.