From 5c947bf68465241eee3abcec931ae53054ae4eef Mon Sep 17 00:00:00 2001 From: simranchhattani Date: Sat, 11 Jul 2020 00:59:15 +0530 Subject: Add files via upload --- .../Vector-Spaces/Dual-Spaces/Linear_Functional.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Dual-Spaces/Linear_Functional.py (limited to 'FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Dual-Spaces/Linear_Functional.py') diff --git a/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Dual-Spaces/Linear_Functional.py b/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Dual-Spaces/Linear_Functional.py new file mode 100644 index 0000000..6edc918 --- /dev/null +++ b/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Dual-Spaces/Linear_Functional.py @@ -0,0 +1,29 @@ +from manimlib.imports import * +import numpy as np +class LinearFunctional(Scene): + def construct(self): + big_box=Rectangle().scale(2.7) + box = Rectangle(height=2,width=2,color=DARK_GREY).set_fill(color=PURPLE,opacity=350) + arrow1 = Arrow(color=RED).shift(1.8*LEFT+0.5*UP) + arrow2 = Arrow(color=RED).shift(1.8*LEFT+0.5*DOWN) + arrow3 = Arrow(color=GREEN).shift(0.5*UP+1.8*RIGHT) + arrow4 = Arrow(color=GREEN).shift(0.5*DOWN+1.8*RIGHT) + Linear = TextMobject("LINEAR",color=BLACK).scale(0.5).shift(0.2*UP) + Functional = TextMobject("FUNCTIONAL",color=BLACK).scale(0.5).shift(0.2*DOWN) + u = TextMobject(r"$\vec{u}$",color=YELLOW).scale(0.7).shift(2.8*LEFT+0.5*UP) + v = TextMobject(r"$\vec{v}$",color=YELLOW).scale(0.7).shift(2.8*LEFT+0.5*DOWN) + f1 = TextMobject(r"$f_1$",color=YELLOW).scale(0.7).shift(2.8*RIGHT+0.5*UP) + f2 = TextMobject(r"$f_2$",color=YELLOW).scale(0.7).shift(2.8*RIGHT+0.5*DOWN) + text = TextMobject(r"The Linear Functional is a function that takes $\vec{u}, \vec{v} \in$ V as inputs and gives the output $f_1, f_2\in$ F.").scale(0.55).shift(2*DOWN) + self.play(ShowCreation(big_box)) + self.play(ShowCreation(box)) + self.play(ShowCreation(Linear),ShowCreation(Functional)) + self.wait(2) + self.play(ShowCreation(arrow1),ShowCreation(u)) + self.play(ShowCreation(arrow3),ShowCreation(f1)) + self.wait(0.7) + self.play(ShowCreation(arrow2),ShowCreation(v)) + self.play(ShowCreation(arrow4),ShowCreation(f2)) + self.wait(1) + self.play(ShowCreation(text)) + self.wait(4) -- cgit