summaryrefslogtreecommitdiff
path: root/FSF-2020/linear-algebra/linear-transformations/Gram Schmidt Orthonormalization Process/file1_introduction.py
diff options
context:
space:
mode:
authorPurusharth Saxena2020-07-07 22:16:21 +0530
committerGitHub2020-07-07 22:16:21 +0530
commit5e45b00baa667ee6b8abed79b6e6c6c6757d1d0f (patch)
tree374b2dae26074fe22003e74d91fe90729e22e899 /FSF-2020/linear-algebra/linear-transformations/Gram Schmidt Orthonormalization Process/file1_introduction.py
parentbdb286da774f5c1c168194f18162ae09f944aa1b (diff)
parent90cc46c2527f7798b5e9e442da56c1358322e2bf (diff)
downloadFSF-mathematics-python-code-archive-5e45b00baa667ee6b8abed79b6e6c6c6757d1d0f.tar.gz
FSF-mathematics-python-code-archive-5e45b00baa667ee6b8abed79b6e6c6c6757d1d0f.tar.bz2
FSF-mathematics-python-code-archive-5e45b00baa667ee6b8abed79b6e6c6c6757d1d0f.zip
Merge pull request #52 from architsangal/master
Rearranging files
Diffstat (limited to 'FSF-2020/linear-algebra/linear-transformations/Gram Schmidt Orthonormalization Process/file1_introduction.py')
-rw-r--r--FSF-2020/linear-algebra/linear-transformations/Gram Schmidt Orthonormalization Process/file1_introduction.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/FSF-2020/linear-algebra/linear-transformations/Gram Schmidt Orthonormalization Process/file1_introduction.py b/FSF-2020/linear-algebra/linear-transformations/Gram Schmidt Orthonormalization Process/file1_introduction.py
new file mode 100644
index 0000000..ccd23c9
--- /dev/null
+++ b/FSF-2020/linear-algebra/linear-transformations/Gram Schmidt Orthonormalization Process/file1_introduction.py
@@ -0,0 +1,33 @@
+from manimlib.imports import *
+
+class Orthonormal(Scene):
+ def construct(self):
+ Centre = DOWN
+ arrow_1 = Arrow(start = Centre+ORIGIN,end = Centre+1.414*(UP+RIGHT))
+ arrow_2 = Arrow(start = Centre+ORIGIN,end = Centre+2*UP)
+ arrow_1.scale(1.35)
+ arrow_2.scale(1.35)
+ text = TextMobject("This is a set of linearly independent vectors")
+ text.scale(0.75)
+ text.move_to(3*UP+3*LEFT)
+ text.set_color(PURPLE_E)
+ arrow_1.set_color(PURPLE_E)
+ arrow_2.set_color(PURPLE_E)
+ self.play(Write(text))
+ self.play(ShowCreation(arrow_1), ShowCreation(arrow_2))
+ self.wait(2)
+ text1 = TextMobject("After we apply Gram-Schmidt Orthogonalization Process to set of linearly independent vectors")
+ text1.scale(0.6)
+ text1.move_to(3*UP+2*LEFT)
+ text1.set_color(GREEN)
+ arrow_a = Arrow(start = Centre+ORIGIN,end = Centre+0.707*(UP+RIGHT))
+ arrow_a.set_color(GREEN)
+ arrow_a.scale(2)
+ self.play(Transform(text,text1))
+ self.wait(2)
+ self.play(Transform(arrow_1,arrow_a))
+ arrow_b = Arrow(start = Centre+ORIGIN,end = Centre+0.707*(UP+LEFT))
+ arrow_b.set_color(GREEN)
+ arrow_b.scale(2)
+ self.play(Transform(arrow_2,arrow_b))
+ self.wait(2) \ No newline at end of file