summaryrefslogtreecommitdiff
path: root/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential
diff options
context:
space:
mode:
authorVaishnavi2020-06-30 01:14:41 +0530
committerGitHub2020-06-30 01:14:41 +0530
commit2c18d3645c579576f7cc5caf2a0989d8a35510d6 (patch)
tree307fcd1a7bff2bc1351053f889e9681fdfa83721 /FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential
parent3a42ab7ee6ebce1ad7c97b4f466ce26d11c0506c (diff)
downloadFSF-mathematics-python-code-archive-2c18d3645c579576f7cc5caf2a0989d8a35510d6.tar.gz
FSF-mathematics-python-code-archive-2c18d3645c579576f7cc5caf2a0989d8a35510d6.tar.bz2
FSF-mathematics-python-code-archive-2c18d3645c579576f7cc5caf2a0989d8a35510d6.zip
Update file5_Total_differential_approximation.py
Diffstat (limited to 'FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential')
-rw-r--r--FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential/file5_Total_differential_approximation.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential/file5_Total_differential_approximation.py b/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential/file5_Total_differential_approximation.py
index 83017ed..e7b39bb 100644
--- a/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential/file5_Total_differential_approximation.py
+++ b/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Total-Differential/file5_Total_differential_approximation.py
@@ -1,11 +1,14 @@
from manimlib.imports import*
-
-class firstScene(ThreeDScene):
+#---- approximation value of function between two points using total differentials
+class approximation(ThreeDScene):
def construct(self):
- axes = ThreeDAxes().rotate(1.571)
+ axes = ThreeDAxes()
+ label_x = TextMobject("$x$").shift([5.5,-0.3,0]).fade(0.4) #---- x axis
+ label_y = TextMobject("$y$").shift([-0.5,5.5,0]).rotate(-4.5).fade(0.4) #---- y axis
+
surface = ParametricSurface(
lambda u, v: np.array([
np.sin(u),
@@ -29,9 +32,10 @@ class firstScene(ThreeDScene):
label = TextMobject("$z = f(x,y)$").scale(0.6).shift(4*RIGHT+3*UP)
-
- self.add(axes)
self.set_camera_orientation(phi=75*DEGREES,theta=-10*DEGREES)
+ self.add(axes)
+ self.add(label_x)
+ self.add(label_y)
self.wait(1)
self.play(Write(plane))
self.wait(1)