marksfuncs 0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- marksfuncs-0.1/LICENSE.txt +21 -0
- marksfuncs-0.1/PKG-INFO +76 -0
- marksfuncs-0.1/README.md +57 -0
- marksfuncs-0.1/marksfuncs/__init__.py +1 -0
- marksfuncs-0.1/marksfuncs/functions.py +1317 -0
- marksfuncs-0.1/marksfuncs.egg-info/PKG-INFO +76 -0
- marksfuncs-0.1/marksfuncs.egg-info/SOURCES.txt +10 -0
- marksfuncs-0.1/marksfuncs.egg-info/dependency_links.txt +1 -0
- marksfuncs-0.1/marksfuncs.egg-info/requires.txt +3 -0
- marksfuncs-0.1/marksfuncs.egg-info/top_level.txt +1 -0
- marksfuncs-0.1/setup.cfg +4 -0
- marksfuncs-0.1/setup.py +31 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 mark.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
marksfuncs-0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: marksfuncs
|
|
3
|
+
Version: 0.1
|
|
4
|
+
Summary: Graph many mathematical functions
|
|
5
|
+
Author: mark. (Marc Pérez)
|
|
6
|
+
Author-email: <marcperezcarrasco2010@gmail.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Keywords: python,maths,graphics,functions,xy,mathematical functions
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Operating System :: Unix
|
|
12
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
13
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE.txt
|
|
16
|
+
Requires-Dist: numpy
|
|
17
|
+
Requires-Dist: matplotlib
|
|
18
|
+
Requires-Dist: scipy
|
|
19
|
+
|
|
20
|
+
# marksfuncs
|
|
21
|
+
|
|
22
|
+
A mathematical library to graph many mathematical functions in a plot.
|
|
23
|
+
|
|
24
|
+
Developed by Marc Pérez (c) 2024
|
|
25
|
+
|
|
26
|
+
## Examples of How To Use
|
|
27
|
+
|
|
28
|
+
Watch a function's parameters
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from marksfuncs import Linear
|
|
32
|
+
|
|
33
|
+
# For Printing Parameters In Console
|
|
34
|
+
print(Linear())
|
|
35
|
+
|
|
36
|
+
# You Can Add It In Anything That Supports An String
|
|
37
|
+
message = "I like bananas "
|
|
38
|
+
print(message+Linear())
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Make The Grafic Of Your Function
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
from marksfuncs import Exponential
|
|
45
|
+
|
|
46
|
+
# Printing A Message When The Grafic Finished Showing
|
|
47
|
+
print(Exponential(a=6, b=5, x_values_list=[-5, 5, 100]))
|
|
48
|
+
|
|
49
|
+
# Only Show The Grafic
|
|
50
|
+
Exponential(a=4, b=2, x_values_list=[-5, 5, 100])
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Graphics Explanation
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
from marksfuncs import Exponential
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
x_values_list = A list to indicate de values of x:
|
|
62
|
+
x_values_list[-5, 5, 100] = x will start at number -5 and end in 5 leaving 100 spaces.
|
|
63
|
+
|
|
64
|
+
a, b (This values depend on the type of function we would like to graph) = In this case,
|
|
65
|
+
Exponential Function Formula = f(x) = a exp(b x)
|
|
66
|
+
|
|
67
|
+
<------------------------------------------------------------------------------------->
|
|
68
|
+
|
|
69
|
+
You can navigate through the graphic to know the exact values of y and x in the position you click,
|
|
70
|
+
or just can watch the numbers of the graphic. In the bottom you can save the graphic or move it,
|
|
71
|
+
in every graphic there's a label that tells you the current formula of the function.
|
|
72
|
+
|
|
73
|
+
"""
|
|
74
|
+
# Create The Graphic
|
|
75
|
+
Exponential(a=3, b=4, x_values_list=[-5, 5, 100]).graph()
|
|
76
|
+
```
|
marksfuncs-0.1/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# marksfuncs
|
|
2
|
+
|
|
3
|
+
A mathematical library to graph many mathematical functions in a plot.
|
|
4
|
+
|
|
5
|
+
Developed by Marc Pérez (c) 2024
|
|
6
|
+
|
|
7
|
+
## Examples of How To Use
|
|
8
|
+
|
|
9
|
+
Watch a function's parameters
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from marksfuncs import Linear
|
|
13
|
+
|
|
14
|
+
# For Printing Parameters In Console
|
|
15
|
+
print(Linear())
|
|
16
|
+
|
|
17
|
+
# You Can Add It In Anything That Supports An String
|
|
18
|
+
message = "I like bananas "
|
|
19
|
+
print(message+Linear())
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Make The Grafic Of Your Function
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from marksfuncs import Exponential
|
|
26
|
+
|
|
27
|
+
# Printing A Message When The Grafic Finished Showing
|
|
28
|
+
print(Exponential(a=6, b=5, x_values_list=[-5, 5, 100]))
|
|
29
|
+
|
|
30
|
+
# Only Show The Grafic
|
|
31
|
+
Exponential(a=4, b=2, x_values_list=[-5, 5, 100])
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Graphics Explanation
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from marksfuncs import Exponential
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
x_values_list = A list to indicate de values of x:
|
|
43
|
+
x_values_list[-5, 5, 100] = x will start at number -5 and end in 5 leaving 100 spaces.
|
|
44
|
+
|
|
45
|
+
a, b (This values depend on the type of function we would like to graph) = In this case,
|
|
46
|
+
Exponential Function Formula = f(x) = a exp(b x)
|
|
47
|
+
|
|
48
|
+
<------------------------------------------------------------------------------------->
|
|
49
|
+
|
|
50
|
+
You can navigate through the graphic to know the exact values of y and x in the position you click,
|
|
51
|
+
or just can watch the numbers of the graphic. In the bottom you can save the graphic or move it,
|
|
52
|
+
in every graphic there's a label that tells you the current formula of the function.
|
|
53
|
+
|
|
54
|
+
"""
|
|
55
|
+
# Create The Graphic
|
|
56
|
+
Exponential(a=3, b=4, x_values_list=[-5, 5, 100]).graph()
|
|
57
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from marksfuncs.functions import *
|