# Abdullah Graph Equation
A Python package for graphing mathematical equations from string input.
## Installation
```bash
pip install abdullah_graph_eq
```
## Usage
```python
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
```python
graph_equation("2*x + 3")
```
### Quadratic Function
```python
graph_equation("x**2 - 4*x + 3")
```
### Trigonometric Function
```python
graph_equation("sin(x) + cos(2*x)")
```
### Complex Function
```python
graph_equation("exp(-x**2) * sin(5*x)")
```
## Requirements
- Python 3.7+
- matplotlib
- numpy
- sympy
## License
MIT License
Raw data
{
"_id": null,
"home_page": "https://github.com/abdullahmashhadi/abdullah_graph_eq",
"name": "abdullah-graph-eq",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "mathematics, plotting, graphing, equations, visualization",
"author": "abdullahmashhadi",
"author_email": "Abdullah <your.email@example.com>",
"download_url": "https://files.pythonhosted.org/packages/f1/fb/853fcab96a836ff7fc98ecb89ef2b387e2d3a376682fe640d44e772bad72/abdullah_graph_eq-0.1.0.tar.gz",
"platform": null,
"description": "# Abdullah Graph Equation\n\nA Python package for graphing mathematical equations from string input.\n\n## Installation\n\n```bash\npip install abdullah_graph_eq\n```\n\n## Usage\n\n```python\nfrom abdullah_graph_eq import graph_equation\n\n# Graph a simple quadratic equation\ngraph_equation(\"x**2 + 2*x + 1\")\n\n# Graph a trigonometric function\ngraph_equation(\"sin(x)\")\n\n# Graph with custom range\ngraph_equation(\"x**3 - 2*x**2 + x - 1\", x_range=(-5, 5))\n\n# Save the plot\ngraph_equation(\"cos(x) + sin(2*x)\", save_path=\"my_graph.png\")\n```\n\n## Features\n\n- Parse mathematical equations from strings\n- Support for common mathematical functions (sin, cos, tan, log, exp, etc.)\n- Customizable plotting range\n- Save plots to files\n- Support for multiple equation formats\n\n## Supported Functions\n\n- Basic arithmetic: `+`, `-`, `*`, `/`, `**` (power)\n- Trigonometric: `sin`, `cos`, `tan`, `asin`, `acos`, `atan`\n- Exponential/Logarithmic: `exp`, `log`, `ln`, `log10`\n- Other: `sqrt`, `abs`\n\n## Examples\n\n### Linear Function\n\n```python\ngraph_equation(\"2*x + 3\")\n```\n\n### Quadratic Function\n\n```python\ngraph_equation(\"x**2 - 4*x + 3\")\n```\n\n### Trigonometric Function\n\n```python\ngraph_equation(\"sin(x) + cos(2*x)\")\n```\n\n### Complex Function\n\n```python\ngraph_equation(\"exp(-x**2) * sin(5*x)\")\n```\n\n## Requirements\n\n- Python 3.7+\n- matplotlib\n- numpy\n- sympy\n\n## License\n\nMIT License\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package for graphing mathematical equations from string input",
"version": "0.1.0",
"project_urls": {
"Bug Reports": "https://github.com/yourusername/abdullah_graph_eq/issues",
"Homepage": "https://github.com/yourusername/abdullah_graph_eq",
"Source": "https://github.com/yourusername/abdullah_graph_eq"
},
"split_keywords": [
"mathematics",
" plotting",
" graphing",
" equations",
" visualization"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "d9eae22e548aee217106f62fdf088c8409e2bb8fd49223ef543629e969991ce0",
"md5": "8df10bfac97d5721b70fcdb495cde5e7",
"sha256": "665fd278b6cb644f45c9b80463e3e883a3ba1b3d42de871248a46c5a0258ff79"
},
"downloads": -1,
"filename": "abdullah_graph_eq-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8df10bfac97d5721b70fcdb495cde5e7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7970,
"upload_time": "2025-07-10T16:20:02",
"upload_time_iso_8601": "2025-07-10T16:20:02.830130Z",
"url": "https://files.pythonhosted.org/packages/d9/ea/e22e548aee217106f62fdf088c8409e2bb8fd49223ef543629e969991ce0/abdullah_graph_eq-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f1fb853fcab96a836ff7fc98ecb89ef2b387e2d3a376682fe640d44e772bad72",
"md5": "97449bdf73ceb060f7208e3fdafba777",
"sha256": "65a74ae2ecb08bd92dc6418d7f43d0c4e9500e3dec5a3854896284e00854a9c3"
},
"downloads": -1,
"filename": "abdullah_graph_eq-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "97449bdf73ceb060f7208e3fdafba777",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6878,
"upload_time": "2025-07-10T16:20:03",
"upload_time_iso_8601": "2025-07-10T16:20:03.927657Z",
"url": "https://files.pythonhosted.org/packages/f1/fb/853fcab96a836ff7fc98ecb89ef2b387e2d3a376682fe640d44e772bad72/abdullah_graph_eq-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-10 16:20:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "abdullahmashhadi",
"github_project": "abdullah_graph_eq",
"github_not_found": true,
"lcname": "abdullah-graph-eq"
}