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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file marksfuncs-0.2.tar.gz.

File metadata

  • Download URL: marksfuncs-0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for marksfuncs-0.2.tar.gz
Algorithm Hash digest
SHA256 b25180da5fcf5e6f5919032579af7ebf5c0d7ff7390c87e324c2433d7a98c485
MD5 fa8799d32d2d3e871a846c43cf6bac31
BLAKE2b-256 0d823968861a8d3d33436efcf41ddb9f18c5c7d84a32d1c8afcc6651164a1423

See more details on using hashes here.

File details

Details for the file marksfuncs-0.2-py3-none-any.whl.

File metadata

  • Download URL: marksfuncs-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for marksfuncs-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ae286cc17a9400dee166a22dd99b01767af490bac19354c3d9ff38eb74618ff
MD5 7e7ed00b98a3d41002722cad3466f4b6
BLAKE2b-256 6eea4a05af81da66df9e1140bb215e1023235493ee468dd0aecc955ecaad70ca

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