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.1.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.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: equationplot-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f26fb02c0de088317551865544e92635c58af864c30876327d366540be5ce27c
MD5 2f34a5f9f66185d68158a447b78a9676
BLAKE2b-256 76146b49810be53214c730d547eb2944b73ea49a26e95478f72630859f8388f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: EquationPlot-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 735f0d8129ac312df606b925e729a87def430b3495a7dcde6bc0d61efadd86e2
MD5 d7e79ae361682f826055dafe977a254c
BLAKE2b-256 1d42892d9f5811a709d8413800fd2b15e99faaa7e5571d73759b8302c0fcfc58

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