From 206e13c581fc949943434e5d0a66626b5732da62 Mon Sep 17 00:00:00 2001 From: Vaishnavi Date: Tue, 26 May 2020 12:08:11 +0530 Subject: Rename file 4- f(x,y) = (y-x)(1-2x-3y).py to file 4_f(x,y) = (y-x)(1-2x-3y).py --- .../file 4- f(x,y) = (y-x)(1-2x-3y).py | 32 ---------------------- .../file 4_f(x,y) = (y-x)(1-2x-3y).py | 32 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 FSF-2020/approximations-and-optimizations/Critical-Points/file 4- f(x,y) = (y-x)(1-2x-3y).py create mode 100644 FSF-2020/approximations-and-optimizations/Critical-Points/file 4_f(x,y) = (y-x)(1-2x-3y).py (limited to 'FSF-2020') diff --git a/FSF-2020/approximations-and-optimizations/Critical-Points/file 4- f(x,y) = (y-x)(1-2x-3y).py b/FSF-2020/approximations-and-optimizations/Critical-Points/file 4- f(x,y) = (y-x)(1-2x-3y).py deleted file mode 100644 index 72c93b1..0000000 --- a/FSF-2020/approximations-and-optimizations/Critical-Points/file 4- f(x,y) = (y-x)(1-2x-3y).py +++ /dev/null @@ -1,32 +0,0 @@ -from manimlib.imports import* - -class ExampleAnimation(ThreeDScene): - def construct(self): - axes = ThreeDAxes() - - f_text = TextMobject("$f(x,y) = (y-x)(1-2x-3y)$").to_corner(UL) - d = Dot(np.array([0,0,0]), color = '#800000') #---- Critical Point - d_text = TextMobject("$(0.2,0.2)$",color = '#DC143C').scale(0.5).shift(0.2*UP) #----x = 0.2, y = 0.2 - r_text=TextMobject("Critical Point",color = '#00FFFF').shift(0.3*DOWN).scale(0.6) - - #----f(x,y) = (y-x)(1-2x-3y) - f = ParametricSurface( - lambda u, v: np.array([ - u, - v, - (v-u)*(1-2*u-3*v) - ]),v_min = -1, v_max = 1, u_min = -1, u_max = 1, checkerboard_colors = [PURPLE_D, PURPLE_E], - resolution=(20, 20)).scale(1) - - self.set_camera_orientation(phi = 75 * DEGREES) - self.begin_ambient_camera_rotation(rate=0.5) - - self.add_fixed_in_frame_mobjects(f_text) - self.wait(1) - self.add(axes) - self.play(Write(f),Write(d)) - self.wait(1) - self.add_fixed_in_frame_mobjects(d_text) - self.wait(1) - self.add_fixed_in_frame_mobjects(r_text) - self.wait(3) diff --git a/FSF-2020/approximations-and-optimizations/Critical-Points/file 4_f(x,y) = (y-x)(1-2x-3y).py b/FSF-2020/approximations-and-optimizations/Critical-Points/file 4_f(x,y) = (y-x)(1-2x-3y).py new file mode 100644 index 0000000..72c93b1 --- /dev/null +++ b/FSF-2020/approximations-and-optimizations/Critical-Points/file 4_f(x,y) = (y-x)(1-2x-3y).py @@ -0,0 +1,32 @@ +from manimlib.imports import* + +class ExampleAnimation(ThreeDScene): + def construct(self): + axes = ThreeDAxes() + + f_text = TextMobject("$f(x,y) = (y-x)(1-2x-3y)$").to_corner(UL) + d = Dot(np.array([0,0,0]), color = '#800000') #---- Critical Point + d_text = TextMobject("$(0.2,0.2)$",color = '#DC143C').scale(0.5).shift(0.2*UP) #----x = 0.2, y = 0.2 + r_text=TextMobject("Critical Point",color = '#00FFFF').shift(0.3*DOWN).scale(0.6) + + #----f(x,y) = (y-x)(1-2x-3y) + f = ParametricSurface( + lambda u, v: np.array([ + u, + v, + (v-u)*(1-2*u-3*v) + ]),v_min = -1, v_max = 1, u_min = -1, u_max = 1, checkerboard_colors = [PURPLE_D, PURPLE_E], + resolution=(20, 20)).scale(1) + + self.set_camera_orientation(phi = 75 * DEGREES) + self.begin_ambient_camera_rotation(rate=0.5) + + self.add_fixed_in_frame_mobjects(f_text) + self.wait(1) + self.add(axes) + self.play(Write(f),Write(d)) + self.wait(1) + self.add_fixed_in_frame_mobjects(d_text) + self.wait(1) + self.add_fixed_in_frame_mobjects(r_text) + self.wait(3) -- cgit