manim-derivative-plotter 1.0.0__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.
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2018 The Python Packaging Authority
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: manim-derivative_plotter
3
+ Version: 1.0.0
4
+ Summary: a simple tool for plotting polynomial derivatives with manim
5
+ Author-email: TyrannoJ <julius.megerle@outlook.de>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/TyrannoJ/manim
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: manim
14
+ Requires-Dist: sympy
15
+ Requires-Dist: typst
16
+ Provides-Extra: typst
17
+ Requires-Dist: manim[typst]; extra == "typst"
18
+ Dynamic: license-file
19
+
20
+ # This is a Python Derivative plotter made with manim
21
+
22
+ ## What does it do?
23
+
24
+ There are two main codes here.
25
+ - useful_derivatives.py
26
+ - derivatives_simple.py
27
+
28
+ With both you can basically do the same
29
+ 1. Give it a simple polynomial function as a String like "2x4+3x2"
30
+ 2. It calculates the first and second derivatives of the function
31
+ 3. It plots all of them
32
+ 4. It shows you all their zero points
33
+ 5. It shows you the Extremes and Turning points of the function
34
+
35
+ The only difference between the two is, that the simple version only shows all that to you while the other one animates it
36
+ [look at the program outputs here](https://tyrannoj.github.io/manim/index.html)
37
+
38
+ ## What do the results mean:
39
+
40
+ ### in the picture version
41
+ - blue line: main function
42
+ - blue dots: zeros of the main function
43
+ - green line: the first derivative function
44
+ - green dots: extremes of the main function (TIP=local minimum,HOP=local maxiumum,TEP=middle points with zero slope)
45
+ - red line: second derivative function
46
+ - red dots: turning points of the main function
47
+ - purple is where the main function is curved to the left
48
+ - yellow is where the main function is curved to the right
49
+
50
+ ### in the animation
51
+
52
+ - First it animates the main function and it's zeros in blue
53
+ - then the first derivative function and it's zeros in green
54
+ - then the second derivative function and it's zeros in red
55
+ - Afterwards it shows you the extremes in Blue (TIP=local minimum,HOP=local maxiumum,TEP=middle points with zero slope)
56
+ - And then the turns in Blue and the curvature of the function purple=left yellow=right and the turning points
57
+
58
+ ## How can you do it yourself
59
+
60
+
61
+ - You can simply run
62
+ ```pip install manim-derivatives-plotter ```
63
+ - Then you can run
64
+ ```python -c "from manim_derivatives import render_picture; render_picture()"``` for an image
65
+ - and
66
+ ```python -c "from manim_derivatives import render_animation; render_animation()" ```for a video.
67
+ - to Input your function you just type it in the command prompt
68
+ - Input style for functions: *coefficient*x*power*+*next-coefficien*x*next-power*...
69
+ - **A few examples:**
70
+ 1. 2x3
71
+ 2. x3-4x2
72
+ 3. 4.3x4+x
73
+ 4. -2.5x6-x2+3
74
+
75
+ ## How did I build it
76
+ I used *manim* to animate and *sympy* for the zero points, so a big thanks to Grant SAnderson from 3blue1brown. I used perplexity and a little GitHub Copilot for research especially for specific manim functions and to write a few little functionalities with syntaxes I didn't know but never more than 2-3 lines and a lot of help on the package structure. I also used it to understand the errors that were output.
77
+ This is my first manim project and I'm quite happy with how it turned out and I plan to do more.
78
+
79
+
80
+
81
+ ## to Do (for future reference)
82
+ - maybe make interactive
83
+ - make input more user friendly
84
+ - make handle of constants better
85
+ - typst color work
86
+ - test typst install
87
+ - typst in animation
88
+
89
+
90
+
91
+
@@ -0,0 +1,72 @@
1
+ # This is a Python Derivative plotter made with manim
2
+
3
+ ## What does it do?
4
+
5
+ There are two main codes here.
6
+ - useful_derivatives.py
7
+ - derivatives_simple.py
8
+
9
+ With both you can basically do the same
10
+ 1. Give it a simple polynomial function as a String like "2x4+3x2"
11
+ 2. It calculates the first and second derivatives of the function
12
+ 3. It plots all of them
13
+ 4. It shows you all their zero points
14
+ 5. It shows you the Extremes and Turning points of the function
15
+
16
+ The only difference between the two is, that the simple version only shows all that to you while the other one animates it
17
+ [look at the program outputs here](https://tyrannoj.github.io/manim/index.html)
18
+
19
+ ## What do the results mean:
20
+
21
+ ### in the picture version
22
+ - blue line: main function
23
+ - blue dots: zeros of the main function
24
+ - green line: the first derivative function
25
+ - green dots: extremes of the main function (TIP=local minimum,HOP=local maxiumum,TEP=middle points with zero slope)
26
+ - red line: second derivative function
27
+ - red dots: turning points of the main function
28
+ - purple is where the main function is curved to the left
29
+ - yellow is where the main function is curved to the right
30
+
31
+ ### in the animation
32
+
33
+ - First it animates the main function and it's zeros in blue
34
+ - then the first derivative function and it's zeros in green
35
+ - then the second derivative function and it's zeros in red
36
+ - Afterwards it shows you the extremes in Blue (TIP=local minimum,HOP=local maxiumum,TEP=middle points with zero slope)
37
+ - And then the turns in Blue and the curvature of the function purple=left yellow=right and the turning points
38
+
39
+ ## How can you do it yourself
40
+
41
+
42
+ - You can simply run
43
+ ```pip install manim-derivatives-plotter ```
44
+ - Then you can run
45
+ ```python -c "from manim_derivatives import render_picture; render_picture()"``` for an image
46
+ - and
47
+ ```python -c "from manim_derivatives import render_animation; render_animation()" ```for a video.
48
+ - to Input your function you just type it in the command prompt
49
+ - Input style for functions: *coefficient*x*power*+*next-coefficien*x*next-power*...
50
+ - **A few examples:**
51
+ 1. 2x3
52
+ 2. x3-4x2
53
+ 3. 4.3x4+x
54
+ 4. -2.5x6-x2+3
55
+
56
+ ## How did I build it
57
+ I used *manim* to animate and *sympy* for the zero points, so a big thanks to Grant SAnderson from 3blue1brown. I used perplexity and a little GitHub Copilot for research especially for specific manim functions and to write a few little functionalities with syntaxes I didn't know but never more than 2-3 lines and a lot of help on the package structure. I also used it to understand the errors that were output.
58
+ This is my first manim project and I'm quite happy with how it turned out and I plan to do more.
59
+
60
+
61
+
62
+ ## to Do (for future reference)
63
+ - maybe make interactive
64
+ - make input more user friendly
65
+ - make handle of constants better
66
+ - typst color work
67
+ - test typst install
68
+ - typst in animation
69
+
70
+
71
+
72
+
@@ -0,0 +1,36 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "manim-derivative_plotter"
7
+ version = "1.0.0"
8
+ authors = [
9
+ { name="TyrannoJ", email="julius.megerle@outlook.de" },
10
+ ]
11
+ description = "a simple tool for plotting polynomial derivatives with manim"
12
+ readme = "README.md"
13
+ requires-python = ">=3.10"
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Operating System :: OS Independent",
17
+ ]
18
+ dependencies = [
19
+ "manim",
20
+ "sympy",
21
+ "typst"
22
+ ]
23
+ license="MIT"
24
+ license-files = ["LICEN[CS]E*"]
25
+
26
+ [project.scripts]
27
+ render-animation="manim_derivatives.__init__:render_animation"
28
+ render-picture="manim_derivatives.__init__:render_picture"
29
+
30
+ [project.optional-dependencies]
31
+ typst = [
32
+ "manim[typst]"
33
+ ]
34
+
35
+ [project.urls]
36
+ Homepage = "https://github.com/TyrannoJ/manim"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: manim-derivative_plotter
3
+ Version: 1.0.0
4
+ Summary: a simple tool for plotting polynomial derivatives with manim
5
+ Author-email: TyrannoJ <julius.megerle@outlook.de>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/TyrannoJ/manim
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: manim
14
+ Requires-Dist: sympy
15
+ Requires-Dist: typst
16
+ Provides-Extra: typst
17
+ Requires-Dist: manim[typst]; extra == "typst"
18
+ Dynamic: license-file
19
+
20
+ # This is a Python Derivative plotter made with manim
21
+
22
+ ## What does it do?
23
+
24
+ There are two main codes here.
25
+ - useful_derivatives.py
26
+ - derivatives_simple.py
27
+
28
+ With both you can basically do the same
29
+ 1. Give it a simple polynomial function as a String like "2x4+3x2"
30
+ 2. It calculates the first and second derivatives of the function
31
+ 3. It plots all of them
32
+ 4. It shows you all their zero points
33
+ 5. It shows you the Extremes and Turning points of the function
34
+
35
+ The only difference between the two is, that the simple version only shows all that to you while the other one animates it
36
+ [look at the program outputs here](https://tyrannoj.github.io/manim/index.html)
37
+
38
+ ## What do the results mean:
39
+
40
+ ### in the picture version
41
+ - blue line: main function
42
+ - blue dots: zeros of the main function
43
+ - green line: the first derivative function
44
+ - green dots: extremes of the main function (TIP=local minimum,HOP=local maxiumum,TEP=middle points with zero slope)
45
+ - red line: second derivative function
46
+ - red dots: turning points of the main function
47
+ - purple is where the main function is curved to the left
48
+ - yellow is where the main function is curved to the right
49
+
50
+ ### in the animation
51
+
52
+ - First it animates the main function and it's zeros in blue
53
+ - then the first derivative function and it's zeros in green
54
+ - then the second derivative function and it's zeros in red
55
+ - Afterwards it shows you the extremes in Blue (TIP=local minimum,HOP=local maxiumum,TEP=middle points with zero slope)
56
+ - And then the turns in Blue and the curvature of the function purple=left yellow=right and the turning points
57
+
58
+ ## How can you do it yourself
59
+
60
+
61
+ - You can simply run
62
+ ```pip install manim-derivatives-plotter ```
63
+ - Then you can run
64
+ ```python -c "from manim_derivatives import render_picture; render_picture()"``` for an image
65
+ - and
66
+ ```python -c "from manim_derivatives import render_animation; render_animation()" ```for a video.
67
+ - to Input your function you just type it in the command prompt
68
+ - Input style for functions: *coefficient*x*power*+*next-coefficien*x*next-power*...
69
+ - **A few examples:**
70
+ 1. 2x3
71
+ 2. x3-4x2
72
+ 3. 4.3x4+x
73
+ 4. -2.5x6-x2+3
74
+
75
+ ## How did I build it
76
+ I used *manim* to animate and *sympy* for the zero points, so a big thanks to Grant SAnderson from 3blue1brown. I used perplexity and a little GitHub Copilot for research especially for specific manim functions and to write a few little functionalities with syntaxes I didn't know but never more than 2-3 lines and a lot of help on the package structure. I also used it to understand the errors that were output.
77
+ This is my first manim project and I'm quite happy with how it turned out and I plan to do more.
78
+
79
+
80
+
81
+ ## to Do (for future reference)
82
+ - maybe make interactive
83
+ - make input more user friendly
84
+ - make handle of constants better
85
+ - typst color work
86
+ - test typst install
87
+ - typst in animation
88
+
89
+
90
+
91
+
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/manim_derivative_plotter.egg-info/PKG-INFO
5
+ src/manim_derivative_plotter.egg-info/SOURCES.txt
6
+ src/manim_derivative_plotter.egg-info/dependency_links.txt
7
+ src/manim_derivative_plotter.egg-info/entry_points.txt
8
+ src/manim_derivative_plotter.egg-info/requires.txt
9
+ src/manim_derivative_plotter.egg-info/top_level.txt
10
+ src/manim_derivatives_plotter/__init__.py
11
+ src/manim_derivatives_plotter/derivatives_simple.py
12
+ src/manim_derivatives_plotter/useful_derivatives.py
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ render-animation = manim_derivatives.__init__:render_animation
3
+ render-picture = manim_derivatives.__init__:render_picture
@@ -0,0 +1,6 @@
1
+ manim
2
+ sympy
3
+ typst
4
+
5
+ [typst]
6
+ manim[typst]
@@ -0,0 +1,32 @@
1
+ import subprocess
2
+ import sys
3
+ from pathlib import Path
4
+
5
+
6
+ PACKAGE_DIR = Path(__file__).parent
7
+
8
+ def render_animation():
9
+ subprocess.run(
10
+ [
11
+ sys.executable,
12
+ "-m",
13
+ "manim",
14
+ "-pqh",
15
+ str(PACKAGE_DIR / "useful_derivatives.py"),
16
+ "Derivatives",
17
+ ],
18
+ check=True,
19
+ )
20
+
21
+ def render_picture():
22
+ subprocess.run(
23
+ [
24
+ sys.executable,
25
+ "-m",
26
+ "manim",
27
+ "-pqh",
28
+ str(PACKAGE_DIR / "derivatives_simple.py"),
29
+ "Derivatives",
30
+ ],
31
+ check=True,
32
+ )