blob: eb310f3a81be8bd68f8563cbde5e099d83e653bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
from manimlib.imports import *
class solution(LinearTransformationScene):
def construct(self):
self.setup()
self.wait()
o = TextMobject(r"This is the original vector space $R^2$ (before Linear Transformation)")
o.move_to(3*DOWN)
o.scale(0.75)
o.add_background_rectangle()
self.play(Write(o))
self.wait()
self.play(FadeOut(o))
A = TextMobject(r"Consider the matrix the of this linear transformation $A$ = $\left[\begin{array}{c c} 1 & -1 \\ 1 & -1 \end{array}\right]$")
A.move_to(3*DOWN)
A.scale(0.75)
A.add_background_rectangle()
self.play(Write(A))
matrix = [[1,-1],[1,-1]]
self.apply_matrix(matrix)
self.wait()
self.play(FadeOut(A))
o = TextMobject(r"This is the transformed vector space")
o.move_to(3*DOWN)
o.scale(0.75)
o.add_background_rectangle()
self.play(Write(o))
self.wait()
self.play(FadeOut(o))
arrow2 = Arrow(start = ORIGIN, end = 2*DOWN+2*LEFT)
arrow2.set_color(PURPLE)
arrow2.scale(1.2)
self.play(ShowCreation(arrow2))
self.wait()
o1 = TextMobject("If the ","vector b"," lies in the transformed vector space")
o2 = TextMobject("(the line) then the solution exist")
o1.move_to(2.5*DOWN+2*RIGHT)
o1[1].set_color(PURPLE)
o2.move_to(3*DOWN+2.5*RIGHT)
o1.scale(0.75)
o2.scale(0.75)
o1.add_background_rectangle()
o2.add_background_rectangle()
self.play(Write(o1))
self.play(Write(o2))
self.wait()
self.play(FadeOut(o1), FadeOut(o2))
self.play(FadeOut(arrow2))
arrow1 = Arrow(start = ORIGIN, end = 2*UP+RIGHT)
arrow1.set_color(ORANGE)
arrow1.scale(1.3)
self.play(ShowCreation(arrow1))
self.wait()
o1 = TextMobject("If the ","vector b"," does lies in the transformed")
o2 = TextMobject("vector space then the does not solution exist")
o1.move_to(2.5*DOWN+2*RIGHT)
o1[1].set_color(ORANGE)
o2.move_to(3*DOWN+2.5*RIGHT)
o1.scale(0.75)
o2.scale(0.75)
o1.add_background_rectangle()
o2.add_background_rectangle()
self.play(Write(o1))
self.play(Write(o2))
self.wait()
self.play(FadeOut(o1), FadeOut(o2))
self.play(FadeOut(arrow1))
|