Skip to main content

Graph many mathematical functions

Project description

marksfuncs

A mathematical library to graph many mathematical functions in a plot.

Developed by Marc Pérez (c) 2024

Examples of How To Use

Show A Grafic

from marksfuncs import Exponential

Exponential(a=4, b=2, x_values_list=[-5, 5, 100])

Convert The Grafic to a Image

from marksfuncs import Linear
from PIL import Image

# Create An Io Img Bytes
img_buffer = Linear(m=3, b=5, x_values_list=[-5, 5, 100]).image()

# Will Show The Function Grafic As A Png File
img = Image.open(img_buffer)
img.show(title="Grafic Image")

Graphics Explanation

Graphic Example

from marksfuncs import Exponential
"""

x_values_list = A list to indicate de values of x:
    x_values_list[-5, 5, 100] = x will start at number -5 and end in 5 leaving 100 spaces.

a, b (This values depend on the type of function we would like to graph) = In this case,
Exponential Function Formula = f(x) = a exp(b x)

<------------------------------------------------------------------------------------->

You can navigate through the graphic to know the exact values of y and x in the position you click,
or just can watch the numbers of the graphic. In the bottom you can save the graphic or move it,
in every graphic there's a label that tells you the current formula of the function.

"""
# Create The Graphic
Exponential(a=3, b=4, x_values_list=[-5, 5, 100]).graph()

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

marksfuncs-0.2.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

marksfuncs-0.2-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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