diff options
author | simranchhattani | 2020-05-27 19:14:16 +0530 |
---|---|---|
committer | GitHub | 2020-05-27 19:14:16 +0530 |
commit | eaf43a99f2797845d436e3a07976498de34cbbb3 (patch) | |
tree | b1dd5b0683833ea5aa83d2cd448526124fdeb749 /FSF-2020/linear-algebra/vector-spaces/Vector-Spaces | |
parent | 8e03fbcadca1d7a4ae0b69dd1062d4cdf89240f5 (diff) | |
download | FSF-mathematics-python-code-archive-eaf43a99f2797845d436e3a07976498de34cbbb3.tar.gz FSF-mathematics-python-code-archive-eaf43a99f2797845d436e3a07976498de34cbbb3.tar.bz2 FSF-mathematics-python-code-archive-eaf43a99f2797845d436e3a07976498de34cbbb3.zip |
Delete Vector_Space_As_Functions.py
Diffstat (limited to 'FSF-2020/linear-algebra/vector-spaces/Vector-Spaces')
-rw-r--r-- | FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Vector_Space_As_Functions.py | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Vector_Space_As_Functions.py b/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Vector_Space_As_Functions.py deleted file mode 100644 index 4f5614d..0000000 --- a/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Vector_Space_As_Functions.py +++ /dev/null @@ -1,62 +0,0 @@ -from manimlib.imports import *
-from scipy import sin,cos
-class FunctionalVectorSpace(GraphScene):
- CONFIG = {
- "x_min": -5,
- "x_max": 5,
- "y_min": -5,
- "y_max": 5,
- "graph_origin": ORIGIN,
- }
- def construct(self):
- self.setup_axes(animate = True)
- curve1 = self.get_graph(lambda x : sin(x), x_min=-5,x_max=5,color=YELLOW_E)
- curve2 = self.get_graph(lambda x : cos(x), x_min=-5,x_max=5,color=RED)
- self.play(ShowCreation(curve1))
- fx=TextMobject(r"$f(x)$",color=YELLOW_E).scale(0.7)
- fx.shift(5*LEFT+0.7*UP)
- self.play(ShowCreation(fx))
- self.play(ShowCreation(curve2))
- gx=TextMobject(r"$g(x)$",color=RED).scale(0.7)
- gx.shift(5*LEFT+0.2*UP)
- self.play(ShowCreation(gx))
- self.wait(2)
- scaling=TextMobject("Scaling f(x) by 2 units",color=GOLD).scale(0.65)
- scaling.shift(3*LEFT+2.4*UP)
- curve3 = self.get_graph(lambda x : 2*sin(x), x_min=-5,x_max=5,color=BLUE)
- fx2=TextMobject(r"$2f(x)$",color=BLUE).scale(0.7)
- fx2.shift(5*LEFT+1*UP)
- self.play(Transform(curve1,curve3),FadeOut(fx),ShowCreation(fx2),ShowCreation(scaling))
- self.wait(3)
- hx = TextMobject(r"$h(x)$",color=PURPLE).scale(0.7)
- hx.shift(4.9*LEFT+1.5*UP)
- curve4 = self.get_graph(lambda x : 2*sin(x) + cos(x), x_min=-5,x_max=5,color=PURPLE)
- self.play(ShowCreation(curve4),ShowCreation(hx))
- self.play(FadeOut(curve2),FadeOut(curve1),FadeOut(fx2),FadeOut(gx),FadeOut(scaling))
- hxn=TextMobject(r"$h(x)$",color=PURPLE).scale(0.7)
- hxn.shift(3*RIGHT+2.4*UP)
- equal = TextMobject("=").scale(0.7)
- equal.shift(3.5*RIGHT+2.4*UP)
- fx2n=TextMobject(r"$2f(x)$",color=BLUE).scale(0.7)
- fx2n.shift(4.2*RIGHT+2.4*UP)
- add=TextMobject("+").scale(0.7)
- add.shift(4.8*RIGHT+2.4*UP)
- gxn=TextMobject(r"$g(x)$",color=RED).scale(0.7)
- gxn.shift(5.3*RIGHT+2.4*UP)
- vector_add=TextMobject("Vector Addition",color=GOLD).scale(0.65)
- vector_add.shift(3*UP+3*RIGHT)
- self.play(ShowCreation(hxn),ShowCreation(equal),ShowCreation(fx2n),ShowCreation(add),ShowCreation(gxn),ShowCreation(vector_add))
- self.wait(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file |