summaryrefslogtreecommitdiff
path: root/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers
diff options
context:
space:
mode:
authorVaishnavi2020-07-19 20:53:23 +0530
committerGitHub2020-07-19 20:53:23 +0530
commitd2c2a4bcdc547e874a835178ed9bd92131162782 (patch)
tree1203c7997a26286a2e5e873ad3a68d49935ca9b8 /FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers
parentfbc57951a3d9154e9a1fb979491308d378e139da (diff)
downloadFSF-mathematics-python-code-archive-d2c2a4bcdc547e874a835178ed9bd92131162782.tar.gz
FSF-mathematics-python-code-archive-d2c2a4bcdc547e874a835178ed9bd92131162782.tar.bz2
FSF-mathematics-python-code-archive-d2c2a4bcdc547e874a835178ed9bd92131162782.zip
Update file1_Extrema_over_g(x,y)=k.py
Diffstat (limited to 'FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers')
-rw-r--r--FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file1_Extrema_over_g(x,y)=k.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file1_Extrema_over_g(x,y)=k.py b/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file1_Extrema_over_g(x,y)=k.py
index a01efb0..b7adcc7 100644
--- a/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file1_Extrema_over_g(x,y)=k.py
+++ b/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file1_Extrema_over_g(x,y)=k.py
@@ -4,10 +4,10 @@ import math as m
#---- optimizing funtion f(x,y) w.r.t to g(x,y)
class ConstrainedExtrema(ThreeDScene):
def construct(self):
- axes = ThreeDAxes().fade(0.4)
- label_x = TextMobject("$x$").shift([5.5,-0.5,0]) #---- x axis
- label_y = TextMobject("$y$").shift([-0.5,5.5,0]).rotate(-4.5) #---- y axis
-
+ axes = ThreeDAxes().scale(0.7).rotate(math.radians(180))
+ label_x = TextMobject("$x$").shift(4*LEFT).fade(0.4) #---- x axis
+ label_y = TextMobject("$y$").shift(3.2*DOWN+0.2*RIGHT).rotate(math.radians(180)).fade(0.4) #---- y axis
+
surface = ParametricSurface(
lambda u, v: np.array([
u,