def test_distance(): assert distance((0,0), (3,4)) == 5.0
## Key Terms - **Point**: Exact location, no size (e.g., A, B) - **Line**: Extends infinitely in both directions (e.g., βAB) - **Ray**: One endpoint, extends infinitely one way (βAB) - **Segment**: Two endpoints (βAB)
### **2. `requirements.txt`**
## Running Animations ```bash manim lessons/03_triangles/animations/pythagorean_visual.py PythagoreanTheorem -p </code></pre> <h2>Using Jupyter Notebooks</h2> <pre><code class="language-bash">jupyter lab lessons/01_points_lines/interactive.ipynb </code></pre> <h2>Writing Your Own Lessons</h2> <p>Add a new folder under <code>lessons/</code> with <code>lesson_notes.md</code>, <code>interactive.ipynb</code>, and <code>animations/</code>.</p> <pre><code> ---
geometrylessonsgithub Description: Interactive geometry lessons with visual proofs, animations, and computational exercises. Built with Manim and Jupyter. π Repository Structure geometrylessonsgithub/ β βββ README.md βββ LICENSE βββ requirements.txt βββ setup.py βββ .gitignore β βββ lessons/ β βββ 01_points_lines/ β β βββ README.md β β βββ lesson_notes.md β β βββ interactive.ipynb β β βββ animations/ β β βββ point_construction.py β β βββ line_ray_segment.py β β βββ media/ β β β βββ 02_angles/ β β βββ README.md β β βββ lesson_notes.md β β βββ interactive.ipynb β β βββ animations/ β β βββ acute_obtuse_right.py β β βββ complementary_supplementary.py β β βββ angle_bisector.py β β β βββ 03_triangles/ β β βββ README.md β β βββ lesson_notes.md β β βββ interactive.ipynb β β βββ animations/ β β βββ triangle_types.py β β βββ pythagorean_visual.py β β βββ triangle_inequality.py β β β βββ 04_circles/ β β βββ README.md β β βββ lesson_notes.md β β βββ interactive.ipynb β β βββ animations/ β β βββ circumference_diameter.py β β βββ inscribed_angles.py β β βββ tangent_radius.py β β β βββ 05_coordinate_geometry/ β βββ README.md β βββ lesson_notes.md β βββ interactive.ipynb β βββ animations/ β βββ distance_midpoint.py β βββ slope_intercept.py β βββ circle_equation.py β βββ exercises/ β βββ 01_points_lines_exercises.ipynb β βββ 02_angles_exercises.ipynb β βββ 03_triangles_exercises.ipynb β βββ 04_circles_exercises.ipynb β βββ 05_coordinate_exercises.ipynb β βββ solutions/ β βββ (same filenames with _solutions) β βββ tools/ β βββ geometry_utils.py β βββ plot_helpers.py β βββ interactive_widgets.py β βββ visual_proofs/ β βββ pythagoras_animated.py β βββ circle_area_derivation.py β βββ triangle_sum_180.py β βββ pi_visual.py β βββ tests/ β βββ test_geometry_utils.py β βββ test_animations.py β βββ docs/ β βββ index.md β βββ installation.md β βββ usage.md β βββ contributing.md β βββ gallery/ βββ images/ βββ videos/ π Core File Contents 1. README.md (top-level) # Geometry Lessons with Code
class PointConstruction(Scene): def construct(self): dot_a = Dot(LEFT * 2, color=BLUE) dot_b = Dot(RIGHT * 2, color=RED) label_a = MathTex("A").next_to(dot_a, DOWN) label_b = MathTex("B").next_to(dot_b, DOWN)
### **3. Sample Lesson: `lessons/01_points_lines/lesson_notes.md`**
Interactive geometry lessons combining visual animations (Manim) and computational exploration (Jupyter). git clone https://github.com/yourusername/geometrylessonsgithub.git cd geometrylessonsgithub pip install -r requirements.txt </code></pre> <p>Then open any <code>interactive.ipynb</code> in Jupyter Lab.</p> <h2>π Lessons</h2> <ol> <li><strong>Points, Lines, Rays, Segments</strong> β Foundations</li> <li><strong>Angles</strong> β Types, bisectors, relationships</li> <li><strong>Triangles</strong> β Types, Pythagorean theorem, inequalities</li> <li><strong>Circles</strong> β Radius, diameter, inscribed angles, tangents</li> <li><strong>Coordinate Geometry</strong> β Distance, slope, line/circle equations</li> </ol> <h2>π¬ Example Visual</h2> <p>Run a visual proof:</p> <pre><code class="language-bash">manim visual_proofs/pythagoras_animated.py PythagoreanTheorem -pqh </code></pre> <h2>π§ Exercises</h2> <p>Each lesson includes an interactive notebook with:</p> <ul> <li>Auto-graded quizzes (using <code>ipywidgets</code>)</li> <li>Dynamic geometry plots (Matplotlib/Plotly)</li> <li>Coding challenges</li> </ul> <h2>π€ Contributing</h2> <p>See <code>docs/contributing.md</code>.</p> <h2>π License</h2> <p>MIT</p> <pre><code> ---