Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Explicit tuple required in comprehension in Python 3

cclauss88c83ac8845a
diff --git a/old_projects/eoc/chapter6.py b/old_projects/eoc/chapter6.py
index 7023ee790..3cb16103f 100644
--- a/old_projects/eoc/chapter6.py
+++ b/old_projects/eoc/chapter6.py
@@ -396,7 +396,7 @@ class SlopeOfCircleExample(ZoomedScene):
equation[1][i].copy(),
derivative[j],
)
- for i, j in (1, 0), (0, 1)
+ for i, j in ((1, 0), (0, 1))
]
)
self.play(Write(dx, run_time = 1))
@@ -406,7 +406,7 @@ class SlopeOfCircleExample(ZoomedScene):
equation[1][i].copy(),
derivative[j],
)
- for i, j in (2, 4), (3, 6), (4, 5)
+ for i, j in ((2, 4), (3, 6), (4, 5))
])
self.play(Write(dy, run_time = 1))
self.play(Blink(morty))
@@ -415,7 +415,7 @@ class SlopeOfCircleExample(ZoomedScene):
equation[1][i].copy(),
derivative[j],
)
- for i, j in (-3, -2), (-2, -1), (-1, -1)
+ for i, j in ((-3, -2), (-2, -1), (-1, -1))
])
self.wait()
@@ -2668,60 +2668,4 @@ class Thumbnail(AlternateExample):
self.draw_graph()
self.graphs.set_stroke(width = 8)
self.remove(self.formula)
-
-
self.add(title)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-