Skip to main content

A library to plot mathematical equations on a graph.

Project description

Here's a README.md file template for your EquationPlot Python library:


EquationPlot - A Python Library for Plotting Mathematical Equations

EquationPlot is a simple and easy-to-use Python library designed to help you visualize mathematical functions, including linear, quadratic, and trigonometric equations. Whether you're solving a problem in mathematics, physics, or economics, EquationPlot provides an intuitive way to plot and analyze these functions with customizable ranges.

Features

  • Plot linear, quadratic, and trigonometric functions.
  • Customizable x-range and y-range for plots.
  • Support for trigonometric functions like sin(x), cos(x), tan(x), and more.
  • Easy-to-use API for fast plotting and analysis.

Installation

You can install EquationPlot using pip:

pip install EquationPlot

Usage

1. Plotting Basic Mathematical Functions

You can plot simple mathematical functions like linear or quadratic equations:

from equationplot import plot_function, solve_equation

# Plot a quadratic equation
plot_function("x**2 - 4", x_range=(-10, 10),y_range=(-10, 10))
print(solve_equation("x**2 - 4"))
# Plot a linear equation
plot_function("2*x + 1", x_range=(-10, 10),y_range=(-10, 10))
print(solve_equation("2*x + 1"))

2. Plotting Trigonometric Functions

EquationPlot also supports trigonometric functions. You can plot functions like sin(x), cos(x), and tan(x):

# Plot a sine wave
plot_function("sin(x)", x_range=(-2 * np.pi, 2 * np.pi) , y_range=(-10, 10))

# Plot a combination of sine and cosine waves
plot_function("sin(x) + cos(x)", x_range=(-2 * np.pi, 2 * np.pi))

# Plot a tangent function with a custom y-range
plot_function("tan(x)", x_range=(-2 * np.pi, 2 * np.pi), y_range=(-10, 10))

3. Customizing the Plot Range

You can adjust both the x-range and y-range:

# Custom x-range and y-range
plot_function("x**2 - 4", x_range=(-10, 10), y_range=(-20, 20))

4. Combining Multiple Functions

You can plot multiple functions together:

plot_function("x**2 - 4", x_range=(-10, 10))
plot_function("sin(x)", x_range=(-2 * np.pi, 2 * np.pi))

Requirements

EquationPlot requires the following Python libraries:

  • matplotlib - For plotting graphs.
  • numpy - For numerical operations.
  • sympy - For symbolic mathematics and parsing equations.

You can install the dependencies using pip:

pip install matplotlib numpy sympy

AUTHORS DIKSHA , AYUSH KUMAR VERMA Gmail- diksha260303official@gmail.com , vermaayush5535@gmail.com

Project details


Download files

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

Source Distribution

equationplot-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

EquationPlot-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file equationplot-0.1.0.tar.gz.

File metadata

  • Download URL: equationplot-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for equationplot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b7b7a068177e23ffeded21af8526abeb5007b91dcb1613025afc3a3cdaa8aeb
MD5 097d3073915c10f2e6f4d74e23edbd30
BLAKE2b-256 17561e7cbdd3a3a0439b9ea96a598448a71d03f57c8e0bbca3454830651b1ba4

See more details on using hashes here.

File details

Details for the file EquationPlot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: EquationPlot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for EquationPlot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a0775b9e54191fec52a1d83ed19a09cf56bc0cbae5e5942414fff3db86dcd17
MD5 954eb9058fb84f6c9e832930421f84c6
BLAKE2b-256 f7386414d0f98fe7e1f6951ad76a5f1ece4d94578eadbf0e3629208532c96578

See more details on using hashes here.

Supported by

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