Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

More Fourier circle scenes

Grant Sanderson1fa8a0dac7f4
diff --git a/active_projects/ode/part2/fourier_series.py b/active_projects/ode/part2/fourier_series.py
index 8b22b4b3d..050ea2e52 100644
--- a/active_projects/ode/part2/fourier_series.py
+++ b/active_projects/ode/part2/fourier_series.py
@@ -290,6 +290,7 @@ class FourierOfPiSymbol(FourierCirclesScene):
1 / np.sqrt(k),
1,
))
+ print(circle.freq, abs(circle.coefficient))
# approx_path = self.get_circle_end_path(circles)
drawn_path = self.get_drawn_path(circles)
@@ -493,7 +494,7 @@ class ExplainCircleAnimations(FourierCirclesScene):
def show_vector_sum(self):
top_circles = self.top_circles
- top_vectors = self.top_vectors
+ top_circles = self.top_circles
self.play(
FadeOut(self.path),