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
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25180da5fcf5e6f5919032579af7ebf5c0d7ff7390c87e324c2433d7a98c485
|
|
| MD5 |
fa8799d32d2d3e871a846c43cf6bac31
|
|
| BLAKE2b-256 |
0d823968861a8d3d33436efcf41ddb9f18c5c7d84a32d1c8afcc6651164a1423
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ae286cc17a9400dee166a22dd99b01767af490bac19354c3d9ff38eb74618ff
|
|
| MD5 |
7e7ed00b98a3d41002722cad3466f4b6
|
|
| BLAKE2b-256 |
6eea4a05af81da66df9e1140bb215e1023235493ee468dd0aecc955ecaad70ca
|