diff options
author | Vaishnavi | 2020-05-25 22:27:58 +0530 |
---|---|---|
committer | GitHub | 2020-05-25 22:27:58 +0530 |
commit | a943082849ca96f6b0ffd7f33f919161b8bd828b (patch) | |
tree | a0eff76695f496940971ce71cf5a9be548e4d46c /FSF-2020/approximations-and-optimizations/Critical Points | |
parent | 4e34d62cf2c2ae709756e0f37aeafe680e265a91 (diff) | |
download | FSF-mathematics-python-code-archive-a943082849ca96f6b0ffd7f33f919161b8bd828b.tar.gz FSF-mathematics-python-code-archive-a943082849ca96f6b0ffd7f33f919161b8bd828b.tar.bz2 FSF-mathematics-python-code-archive-a943082849ca96f6b0ffd7f33f919161b8bd828b.zip |
Update theorem.py
Diffstat (limited to 'FSF-2020/approximations-and-optimizations/Critical Points')
-rw-r--r-- | FSF-2020/approximations-and-optimizations/Critical Points/theorem.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FSF-2020/approximations-and-optimizations/Critical Points/theorem.py b/FSF-2020/approximations-and-optimizations/Critical Points/theorem.py index 6889a52..7c82aa9 100644 --- a/FSF-2020/approximations-and-optimizations/Critical Points/theorem.py +++ b/FSF-2020/approximations-and-optimizations/Critical Points/theorem.py @@ -11,8 +11,8 @@ class TheoremAnimation(ThreeDScene): u, v, u**2+v**2 - ]),v_min=-1,v_max=1,u_min=-1,u_max=1,checkerboard_colors=[TEAL_E], - resolution=(20, 20)).scale(1) + ]),v_min = -1, v_max = 1, u_min = -1, u_max = 1, checkerboard_colors = [TEAL_E], + resolution = (20, 20)).scale(1) #----parabola: -x**2-y**2 parabola2 = ParametricSurface( @@ -20,14 +20,14 @@ class TheoremAnimation(ThreeDScene): u, v, -u**2-v**2 - ]),v_min=-1,v_max=1,u_min=-1,u_max=1,checkerboard_colors=[PURPLE_E,PURPLE_E], - resolution=(20, 20)).scale(1) + ]),v_min = -1, v_max = 1, u_min = -1, u_max = 1, checkerboard_colors = [PURPLE_E,PURPLE_E], + resolution = (20, 20)).scale(1) - self.set_camera_orientation(phi=75 * DEGREES) - self.begin_ambient_camera_rotation(rate=0.4) + self.set_camera_orientation(phi = 75 * DEGREES) + self.begin_ambient_camera_rotation(rate = 0.4) d = Dot(np.array([0,0,0]), color = '#800000') #---- critical point - r = Rectangle(fill_color= '#C0C0C0',fill_opacity =0.3).move_to(ORIGIN) #----tangent plane + r = Rectangle(fill_color = '#C0C0C0',fill_opacity = 0.3).move_to(ORIGIN) #----tangent plane parabola1_text = TextMobject("Maximum with horizontal tangent plane").scale(0.7).to_corner(UL) |