From 319f956286f2f4529b0390ca6a535b742a52ae53 Mon Sep 17 00:00:00 2001 From: Vaishnavi Date: Wed, 27 May 2020 20:43:25 +0530 Subject: Rename file1_Total area of cross section A.py to file1_Total_area_of_cross_section.py --- .../file1_Total area of cross section A.py | 31 ---------------------- .../file1_Total_area_of_cross_section.py | 31 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total area of cross section A.py create mode 100644 FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total_area_of_cross_section.py (limited to 'FSF-2020/approximations-and-optimizations') diff --git a/FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total area of cross section A.py b/FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total area of cross section A.py deleted file mode 100644 index b1ce29c..0000000 --- a/FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total area of cross section A.py +++ /dev/null @@ -1,31 +0,0 @@ -from manimlib.imports import* - -class MotivationAnimation(Scene): - def construct(self): - - r = Rectangle(height = 7,breadth = 2,color = BLUE, fill_opacity = 0.3).scale(0.6) #----metal strip - b = Brace(r,UP) - r_text = TextMobject("$x$ metres",color = YELLOW).shift(3*UP) - m_text = TextMobject("Metal Strip").shift(3*DOWN) - a = Arc(radius=2).rotate(1).shift(LEFT+0.5*UP) - a2 = Arc(radius=2).rotate(5).shift(0.7*LEFT+0.9*UP).scale(0.2) - START = [1,0,0] - END = [0,3,0] - l = Line(START,END,color = RED).shift(0.9*DOWN) - a2_text = TextMobject("$\\theta$",color = PINK).shift(1.6*UP+0.4*RIGHT) - - group1 = VGroup(r_text,b,a,l,a2,a2_text) - f_text = TextMobject("$A = f(x,\\theta)$").shift(2*DOWN) - - ring = Annulus(inner_radius = 0.7, outer_radius = 1, color = BLUE) #--bent metal strip - - self.play(Write(r)) - self.wait(1) - self.play(ShowCreation(m_text)) - self.wait(1) - self.play(Write(group1)) - self.wait(2) - self.play(FadeOut(group1)) - self.wait(1) - self.play(ReplacementTransform(r,ring),ShowCreation(f_text)) - diff --git a/FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total_area_of_cross_section.py b/FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total_area_of_cross_section.py new file mode 100644 index 0000000..b1ce29c --- /dev/null +++ b/FSF-2020/approximations-and-optimizations/Critical-Points/file1_Total_area_of_cross_section.py @@ -0,0 +1,31 @@ +from manimlib.imports import* + +class MotivationAnimation(Scene): + def construct(self): + + r = Rectangle(height = 7,breadth = 2,color = BLUE, fill_opacity = 0.3).scale(0.6) #----metal strip + b = Brace(r,UP) + r_text = TextMobject("$x$ metres",color = YELLOW).shift(3*UP) + m_text = TextMobject("Metal Strip").shift(3*DOWN) + a = Arc(radius=2).rotate(1).shift(LEFT+0.5*UP) + a2 = Arc(radius=2).rotate(5).shift(0.7*LEFT+0.9*UP).scale(0.2) + START = [1,0,0] + END = [0,3,0] + l = Line(START,END,color = RED).shift(0.9*DOWN) + a2_text = TextMobject("$\\theta$",color = PINK).shift(1.6*UP+0.4*RIGHT) + + group1 = VGroup(r_text,b,a,l,a2,a2_text) + f_text = TextMobject("$A = f(x,\\theta)$").shift(2*DOWN) + + ring = Annulus(inner_radius = 0.7, outer_radius = 1, color = BLUE) #--bent metal strip + + self.play(Write(r)) + self.wait(1) + self.play(ShowCreation(m_text)) + self.wait(1) + self.play(Write(group1)) + self.wait(2) + self.play(FadeOut(group1)) + self.wait(1) + self.play(ReplacementTransform(r,ring),ShowCreation(f_text)) + -- cgit