Skip to content

importing changes #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 189 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
7cad73c
Delete Subspace_Example.py
simranchhattani Jun 20, 2020
48f264d
Add files via upload
simranchhattani Jun 20, 2020
2c81d2c
Add files via upload
simranchhattani Jun 20, 2020
adbdd98
Delete Subspace_Example.gif
simranchhattani Jun 20, 2020
75b6e72
Add files via upload
simranchhattani Jun 20, 2020
cd6b1e5
Add files via upload
simranchhattani Jun 21, 2020
d673d59
Delete Linear_Subspace.py
simranchhattani Jun 21, 2020
7bdd0b8
Add files via upload
simranchhattani Jun 24, 2020
f911f3d
Delete Vector_Addition_and_Scalar_Multiplication.gif
simranchhattani Jun 24, 2020
8d18873
Add files via upload
simranchhattani Jun 24, 2020
90b8382
Add files via upload
simranchhattani Jun 24, 2020
10641b7
Add files via upload
simranchhattani Jun 24, 2020
2051cc2
Add files via upload
simranchhattani Jun 24, 2020
2a87b8f
Add files via upload
simranchhattani Jun 24, 2020
d72ba1b
Merge pull request #1 from mohan-padmapriya/edit_two
mohan-padmapriya Jun 25, 2020
8096534
arc length video
Jul 1, 2020
ba2e5d7
Delete file1_multivar_func_examples.py
nishanpoojary Jul 3, 2020
acfcd90
Add files via upload
nishanpoojary Jul 3, 2020
90e3c80
Delete file1_multivar_func_examples.gif
nishanpoojary Jul 3, 2020
6cbec5e
Add files via upload
nishanpoojary Jul 3, 2020
05080cd
tnb, curvature interpretation
Jul 3, 2020
975a74e
Delete file4_partial_deriv_example.py
nishanpoojary Jul 4, 2020
5ee6f08
Add files via upload
nishanpoojary Jul 4, 2020
b76b674
Delete file4_partial_deriv_example.gif
nishanpoojary Jul 4, 2020
81747de
Add files via upload
nishanpoojary Jul 4, 2020
e31e7b7
Delete file3_partial_deriv_defn.gif
nishanpoojary Jul 4, 2020
32cb738
Add files via upload
nishanpoojary Jul 4, 2020
1ba33c8
Delete file3_partial_deriv_defn.py
nishanpoojary Jul 4, 2020
db42977
Add files via upload
nishanpoojary Jul 4, 2020
10c4e26
Delete file3_partial_deriv_defn.gif
nishanpoojary Jul 4, 2020
5e8038a
Add files via upload
nishanpoojary Jul 4, 2020
69c66cd
Delete file7_partial_deriv_clariant_rule.py
nishanpoojary Jul 4, 2020
d553638
Add files via upload
nishanpoojary Jul 4, 2020
1059784
Delete file7_partial_deriv_clariant_rule.gif
nishanpoojary Jul 4, 2020
a0e6d42
Add files via upload
nishanpoojary Jul 4, 2020
c6b8ce1
arcl, velocity changes
Jul 7, 2020
ab0319a
Update README.md
saarthdeshpande Jul 7, 2020
2428692
Merge pull request #5 from FOSSEE/master
Jul 7, 2020
5fce21e
arc length final
Jul 7, 2020
d6f8360
Merge branch 'master' of https://github.com/saarthdeshpande/FSF-mathe…
Jul 7, 2020
18e2098
Add files via upload
nishanpoojary Jul 10, 2020
c557235
Add files via upload
nishanpoojary Jul 10, 2020
71e2d32
Delete Multivariable_Functions_Quiz.pdf
nishanpoojary Jul 10, 2020
3dc783b
Add files via upload
nishanpoojary Jul 10, 2020
284fca6
Add files via upload
nishanpoojary Jul 10, 2020
a37a730
Delete Multivariable_Functions_Quiz.pdf
nishanpoojary Jul 10, 2020
9bba6d8
Delete Multivariable_Functions_Quiz.pdf
nishanpoojary Jul 10, 2020
db8149c
Add files via upload
nishanpoojary Jul 10, 2020
6e46f42
Delete Partial_Derivatives.pdf
nishanpoojary Jul 10, 2020
238addb
Add files via upload
nishanpoojary Jul 10, 2020
54320d5
Delete Directional_Derivatives.pdf
nishanpoojary Jul 10, 2020
d3c3419
Add files via upload
nishanpoojary Jul 10, 2020
5c947bf
Add files via upload
simranchhattani Jul 10, 2020
6f87e58
Add files via upload
simranchhattani Jul 11, 2020
5d0ee23
Delete Vector_Addition_and_Scaling.py
simranchhattani Jul 11, 2020
35157fa
Add files via upload
simranchhattani Jul 11, 2020
623a886
Add files via upload
simranchhattani Jul 11, 2020
b54198b
Add files via upload
simranchhattani Jul 11, 2020
8cc58b1
Delete Inner_Product_Space_Example.py
simranchhattani Jul 11, 2020
88f9fd8
Add files via upload
simranchhattani Jul 11, 2020
5a45e26
Delete Linear_Subspace.py
simranchhattani Jul 11, 2020
0ddf557
Delete Subspace_Example.py
simranchhattani Jul 11, 2020
9451877
Add files via upload
simranchhattani Jul 11, 2020
f424f33
Delete Subspace_Example.mp4
simranchhattani Jul 11, 2020
fcd089b
Delete Linear_Subspace.gif
simranchhattani Jul 11, 2020
0ceeedf
Delete Subspace_Example.gif
simranchhattani Jul 11, 2020
ca44f00
Add files via upload
simranchhattani Jul 11, 2020
46adc3c
Delete Inner_Product_Space_Example.mp4
simranchhattani Jul 11, 2020
eadaf1b
Add files via upload
simranchhattani Jul 11, 2020
20cadd4
velocity updated, tnb torsion, fs1
Jul 13, 2020
adb74fe
readme updated
Jul 14, 2020
cf8a3cf
GSOP final
Jul 14, 2020
794dea3
Archit Sangal
Jul 15, 2020
d6bd3ca
Archit Sangal
Jul 16, 2020
b5eaf0d
Archit Sangal
Jul 16, 2020
cc8c79f
Archit Sangal
Jul 16, 2020
b47fa51
Archit Sangal
Jul 16, 2020
1454087
Archit Sangal
Jul 16, 2020
3fd2d95
Archit Sangal
Jul 16, 2020
cb7755a
Archit Sangal
Jul 17, 2020
d5f9e76
Archit Sangal
Jul 17, 2020
c777057
Archit Sangal
Jul 17, 2020
764fd01
Merge pull request #73 from GSri30/master
purusharths Jul 19, 2020
ae98b8f
Merge pull request #74 from architsangal/master
purusharths Jul 19, 2020
a15447d
Merge pull request #72 from simranchhattani/master
purusharths Jul 19, 2020
bf773ac
final UPLOAD
Jul 19, 2020
39ed70e
Rename file2_Geometric_Proof.py to file3_Geometric_Proof.py
Jul 19, 2020
c6017b6
Rename file3_Constraints_g_and_h.py to file4_Constraints_g_and_h.py
Jul 19, 2020
30444fd
Delete file3_Constraints_g_and_h.gif
Jul 19, 2020
f38c1eb
Delete file2_Geometric_Proof.gif
Jul 19, 2020
705037e
Add files via upload
Jul 19, 2020
ab9752b
Add files via upload
Jul 19, 2020
0ffbff1
Create file2_Constraint_circle_with_contour_plot_of_the_surface_x^2+y…
Jul 19, 2020
1548b2f
Update README.md
Jul 19, 2020
09616b9
Add files via upload
Jul 19, 2020
5557120
Update README.md
Jul 19, 2020
89ac981
Delete file4_Constraints_g_and_h.gif
Jul 19, 2020
6f7f194
Add files via upload
Jul 19, 2020
b7075d5
Update README.md
Jul 19, 2020
b43b266
Update README.md
Jul 19, 2020
8698916
Delete file4_Constraints_g_and_h.gif
Jul 19, 2020
3ec20aa
Update README.md
Jul 19, 2020
876fc06
Add files via upload
Jul 19, 2020
c9d0dc1
Update file4_Constraints_g_and_h.py
Jul 19, 2020
8fcbefa
Update README.md
Jul 19, 2020
fbc5795
Merge pull request #6 from FOSSEE/master
Jul 19, 2020
d2c2a4b
Update file1_Extrema_over_g(x,y)=k.py
Jul 19, 2020
fa254b3
Delete file1_Extrema_over_g(x,y)=k.gif
Jul 19, 2020
469356a
Update README.md
Jul 19, 2020
814063d
Add files via upload
Jul 19, 2020
507ea4b
Delete file1_Extrema_over_g(x,y)=k.gif
Jul 19, 2020
94309bd
Update README.md
Jul 19, 2020
2d16c51
Add files via upload
Jul 19, 2020
ff4473a
Delete file1_Extrema_over_g(x,y)=k.gif
Jul 19, 2020
14998e2
Add files via upload
Jul 19, 2020
99ff2d7
Delete file1_Extrema_over_g(x,y)=k.gif
Jul 19, 2020
a2cc9bd
Update README.md
Jul 19, 2020
b5b27ec
Add files via upload
Jul 19, 2020
1cddd7b
Update README.md
Jul 19, 2020
e00ca1c
Add files via upload
simranchhattani Jul 19, 2020
5253ed4
Add files via upload
simranchhattani Jul 19, 2020
a84df28
Add files via upload
simranchhattani Jul 19, 2020
6e2628f
Delete Basis_of_a_Subspace.mp4
simranchhattani Jul 19, 2020
ada40f0
Add files via upload
simranchhattani Jul 19, 2020
a805543
Delete Basis_of_a_Subspace.mp4
simranchhattani Jul 19, 2020
922a203
Merge pull request #75 from saarthdeshpande/master
purusharths Jul 19, 2020
4160a2a
Merge pull request #76 from vnb09/fsf_tasks
purusharths Jul 19, 2020
0f6feee
Merge pull request #78 from simranchhattani/patch-1
purusharths Jul 19, 2020
5525ce2
Merge pull request #77 from simranchhattani/master
purusharths Jul 19, 2020
d7b4936
Update RiemannRectanglesAnimation.py
stayaryan Jul 20, 2020
bcd70e7
files with gifs
mohan-padmapriya Jul 20, 2020
2a002d6
Merge pull request #84 from mohan-padmapriya/add-gifs
purusharths Jul 20, 2020
f368dbd
Gabriel's horn
stayaryan Jul 20, 2020
dec03b5
pull request
stayaryan Jul 20, 2020
bf7bb8f
Changes
stayaryan Jul 20, 2020
08a81dc
Create README.md
purusharths Jul 20, 2020
e765225
Create README.md
mohan-padmapriya Jul 20, 2020
8a4bb84
Merge pull request #85 from mohan-padmapriya/patch-1
purusharths Jul 20, 2020
dd30e0c
update2
stayaryan Jul 20, 2020
4ee80db
Update and rename FSF-2020/calculus-of-several-variables/div-curl-gra…
mohan-padmapriya Jul 20, 2020
91f5298
Update and rename FSF-2020/calculus-of-several-variables/div-curl-gra…
mohan-padmapriya Jul 20, 2020
2c39fa0
Create README.md
mohan-padmapriya Jul 20, 2020
2c7523a
Create README.md
mohan-padmapriya Jul 20, 2020
6b330fb
Create README.md
mohan-padmapriya Jul 20, 2020
a3bbf92
Merge pull request #91 from mohan-padmapriya/patch-6
purusharths Jul 21, 2020
7633b61
Merge pull request #90 from mohan-padmapriya/patch-5
purusharths Jul 21, 2020
8095101
Merge pull request #89 from mohan-padmapriya/patch-4
purusharths Jul 21, 2020
4ed5c96
Merge pull request #88 from mohan-padmapriya/patch-3
purusharths Jul 21, 2020
be4533e
Merge pull request #87 from mohan-padmapriya/patch-2
purusharths Jul 21, 2020
4b038d8
Merge pull request #86 from stayaryan/master
purusharths Jul 21, 2020
ea7c92e
Delete file1_scalar_functions.gif
nishanpoojary Jul 25, 2020
8ad7fa6
Add files via upload
nishanpoojary Jul 25, 2020
5967f1e
Delete file2_domain_range.gif
nishanpoojary Jul 25, 2020
310fb29
Add files via upload
nishanpoojary Jul 25, 2020
be09265
Delete file1_scalar_functions.py
nishanpoojary Jul 25, 2020
c5f3727
Delete file2_domain_range.py
nishanpoojary Jul 25, 2020
99fde9a
Add files via upload
nishanpoojary Jul 25, 2020
3ee1b89
Delete file2_partial_deriv_hill.py
nishanpoojary Jul 25, 2020
30f5d4f
Add files via upload
nishanpoojary Jul 25, 2020
e8e21e7
Delete file2_partial_deriv_hill.gif
nishanpoojary Jul 25, 2020
0b076c6
Add files via upload
nishanpoojary Jul 25, 2020
406b76d
Delete file1_epsilon_delta_defn.py
nishanpoojary Jul 25, 2020
1bd78c4
Add files via upload
nishanpoojary Jul 25, 2020
541cf3c
Delete file1_epsilon_delta_defn.gif
nishanpoojary Jul 25, 2020
329d8bc
Add files via upload
nishanpoojary Jul 25, 2020
0e1744b
Delete file2_multivariable_func_respresentation.py
nishanpoojary Jul 25, 2020
c4b083a
Add files via upload
nishanpoojary Jul 25, 2020
438c82b
Delete file3_sphere.py
nishanpoojary Jul 25, 2020
af3ee5e
Add files via upload
nishanpoojary Jul 25, 2020
6e98ea0
Delete file4_vectorvf_sine.py
nishanpoojary Jul 25, 2020
b4e2987
Add files via upload
nishanpoojary Jul 25, 2020
d8287cd
Delete file5_vectorvf_helix.py
nishanpoojary Jul 25, 2020
c2dba9c
Add files via upload
nishanpoojary Jul 25, 2020
9fbc860
Delete file2_multivariable_func_respresentation.gif
nishanpoojary Jul 25, 2020
4d62c80
Delete file3_sphere.gif
nishanpoojary Jul 25, 2020
f6f326b
Delete file4_vectorvf_sine.gif
nishanpoojary Jul 25, 2020
c080a4c
Delete file5_vectorvf_helix.gif
nishanpoojary Jul 25, 2020
fcfa5ea
Add files via upload
nishanpoojary Jul 25, 2020
a5e5868
Delete file4_vectorvf_sine.gif
nishanpoojary Jul 25, 2020
8011e2c
Add files via upload
nishanpoojary Jul 25, 2020
15fc461
Merge pull request #92 from nishanpoojary/master
purusharths Jul 25, 2020
5b07b9e
Merge pull request #7 from FOSSEE/master
Jul 27, 2020
71517eb
Update README.md
Jul 27, 2020
d70c002
Delete file2_Constraint_circle_with_contour_plot_of_the_surface_x^2+y…
Jul 27, 2020
7f730f6
Update file2_Constraint_circle_with_contour_plot_of_the_surface_x^2+y…
Jul 27, 2020
7e23b6b
Add files via upload
Jul 27, 2020
0cc8a54
Update README.md
Jul 27, 2020
e4b4e1b
Update README.md
Jul 27, 2020
b5e3206
Merge pull request #93 from vnb09/fsf_tasks
purusharths Jul 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
<h1><div align=”center”><b>SubTopic: Lagrange Multipliers</b></h1></div>
<br/></br>

<tab>file1_Extrema_over_g(x,y)=k
<tab>file1_Extrema_over_g(x,y)

![file1_Extrema_over_g(x,y)](https://github.com/vnb09/FSF-mathematics-python-code-archive/blob/fsf_tasks/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file1_Extrema_over_g(x%2Cy)%3Dk.gif?raw=true)
<br/></br>
<br/></br>

![file1_Extrema_over_g(x,y)=k](https://github.com/vnb09/FSF-mathematics-python-code-archive/blob/fsf_tasks/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file1_Extrema_over_g(x%2Cy)%3Dk.gif?raw=true)
<tab>file2_Constraint_circle_with_contour_plot_of_the_surface_x^2+y^2+x^3-y^3

![file2_Constraint_circle_with_contour_plot_of_the_surface_x^2+y^2+x^3-y^3](https://github.com/vnb09/FSF-mathematics-python-code-archive/blob/fsf_tasks/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file2_Constraint_circle_with_contour_plot_of_the_surface_x%5E2%2By%5E2%2Bx%5E3-y%5E3.gif?raw=true)
<br/></br>
<br/></br>

<tab>file2_Geometric_Proof
<tab>file3_Geometric_Proof

![file2_Geometric_Proof](https://github.com/vnb09/FSF-mathematics-python-code-archive/blob/fsf_tasks/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file2_Geometric_Proof.gif?raw=true)
![file3_Geometric_Proof](https://github.com/vnb09/FSF-mathematics-python-code-archive/blob/fsf_tasks/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file3_Geometric_Proof.gif?raw=true)
<br/></br>
<br/></br>

<tab>file3_Constraints_g_and_h
<tab>file4_Constraints_g_and_h

![file3_Constraints_g_and_h](https://github.com/vnb09/FSF-mathematics-python-code-archive/blob/fsf_tasks/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file3_Constraints_g_and_h.gif?raw=true)
![file4_Constraints_g_and_h](https://github.com/vnb09/FSF-mathematics-python-code-archive/blob/fsf_tasks/FSF-2020/calculus-of-several-variables/approximations-and-optimizations/Lagrange-Multipliers/file4_Constraints_g_and_h.gif?raw=true)
<br/></br>
<br/></br>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#---- 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,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
from manimlib.imports import*
import math as m

class Contourplots(ThreeDScene):
def construct(self):
axes = ThreeDAxes().scale(0.7).rotate(math.radians(180)).fade(0.6)
label_x = TextMobject("$x$").shift(4*LEFT).fade(0.4) #---- x axis
label_y = TextMobject("$y$").shift(3.5*DOWN+0.2*RIGHT).rotate(math.radians(180)).fade(0.4) #---- y axis

#---- surface of the function
surface = ParametricSurface(
lambda u, v: np.array([
u,
v,
u**2+v**2+u**3-v**3
]),u_min=-0.5,u_max=0.5, v_min=-0.5,v_max=0.5).scale(6).shift([0,0,2.5]).set_color(TEAL).fade(0.5)

#---- contour plots
curve1 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
m.exp(m.sin(v**2)),
-v*2.2
]),v_min =-1.3 , v_max =1.3, u_min = -0.1, u_max = 0.1).scale(0.8).shift([0,-2.65,0]).set_color("#800000").rotate(1.2,DOWN)

curve2 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
m.exp(m.sin(v**2)),
-v*2.2
]),v_min =-1.3 , v_max =1.3, u_min = -0.1, u_max = 0.1).scale(0.9).shift([0,-3,0]).set_color("#800000").rotate(1.2,DOWN)

curve3 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
m.exp(m.sin(v**2)),
-v*2.2
]),v_min =-1.3 , v_max =1.3 , u_min = -0.1, u_max = 0.1).scale(1).shift([0,-3.5,0]).set_color("#800000").rotate(1.2,DOWN)

curve4 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
m.exp(m.sin(v**2)),
-v*2.2
]),v_min =-1.3 , v_max =1.3 , u_min = -0.1, u_max = 0.1).scale(1.1).shift([0,-4,0]).set_color("#800000").rotate(1.2,DOWN)

curve5 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
-m.exp(m.sin(v**2)),
v*2.2
]),v_min =-1.3 , v_max =1.3, u_min = -0.1, u_max = 0.1).scale(0.9).shift([0,3,0]).set_color("#800000").rotate(1.2,DOWN)

curve6 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
-m.exp(m.sin(v**2)),
v*2.2
]),v_min =-1.3 , v_max =1.3, u_min = -0.1, u_max = 0.1).scale(1).shift([0,3.5,0]).set_color("#800000").rotate(1.2,DOWN)

curve7 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
-m.exp(m.sin(v**2)),
v*2.2
]),v_min =-1.3 , v_max =1.3, u_min = -0.1, u_max = 0.1).scale(1.1).shift([0,4,0]).set_color("#800000").rotate(1.2,DOWN)

curve8 = ParametricSurface(
lambda u, v: np.array([
u*0.4,
-m.exp(m.sin(v**2)),
v*2.2
]),v_min =-1.3 , v_max =1.3, u_min = -0.1, u_max = 0.1).scale(0.8).shift([0,2.65,0]).set_color("#800000").rotate(1.2,DOWN)

#---------------

#---- label contours
label_c1 = TextMobject("4",color = '#FFA074').shift([0.2,3,0.5]).scale(0.5).rotate(m.radians(180))
label_c2 = TextMobject("3",color = '#FFA074').shift([0.2,2.4,0.5]).scale(0.5).rotate(m.radians(180))
label_c3 = TextMobject("2",color = '#FFA074').shift([0.2,1.9,0.5]).scale(0.5).rotate(m.radians(180))
label_c4 = TextMobject("1",color = '#FFA074').shift([0.2,1.4,0.5]).scale(0.5).rotate(m.radians(180))
label_c5 = TextMobject("1",color = '#FFA074').shift([0.2,-1.5,0.5]).scale(0.5).rotate(m.radians(180))
label_c6 = TextMobject("2",color = '#FFA074').shift([0.2,-2,0.5]).scale(0.5).rotate(m.radians(180))
label_c7 = TextMobject("3",color = '#FFA074').shift([0.2,-2.5,0.5]).scale(0.5).rotate(m.radians(180))
label_c8 = TextMobject("4",color = '#FFA074').shift([0.2,-3,0.5]).scale(0.5).rotate(m.radians(180))

contourplot = VGroup(curve1,curve2,curve3,curve4,curve5,curve6,curve7,curve8,label_c1,label_c2,label_c3,label_c4,label_c5,label_c6,label_c7,label_c8)


circle = Circle(color='#FF00FF',fill_opacity=0.3).shift([-0.5,-1.2,1.5]).rotate(1.9,UP).scale(0.8)
circle2 = ParametricSurface(
lambda u, v: np.array([
1*np.sin(u)*np.cos(v),
1*np.sin(u)*np.sin(v),
-1*np.sin(u)*np.sin(u)+2
]),u_min=0,u_max=PI/2,v_min=0,v_max=2*PI).set_color('#FF00FF').scale(0.6).shift([1.2,2,-3]).scale(1.24)

maxima = Dot(color = '#4169E1').shift([0.7,1.2,1.5])
minima = Dot(color = '#4169E1').shift([1.4,2.2,1.5])

min_text = TextMobject("minimum over $g(x,y)=k$",color = '#FFA074').scale(0.6).shift([-2.2,-1,1.5])
max_text = TextMobject("maximum over $g(x,y)=k$",color = '#FFA074').shift([-2.3,-2.6,1.5]).scale(0.6)


self.set_camera_orientation(phi=75 * DEGREES, theta = 45*DEGREES)
self.add(axes)
self.add(label_x)
self.add(label_y)
self.wait(1)
self.play(Write(surface))
self.play(Write(circle))
self.wait(1)
self.play(FadeOut(circle))
self.wait(1)
self.move_camera(phi=0 * DEGREES, theta = 90*DEGREES)
self.wait(1)
self.add(contourplot)
self.play(FadeOut(surface))
self.wait(1)
self.add(circle2)
self.wait(1)
self.play(Write(minima),Write(maxima))
self.add_fixed_in_frame_mobjects(max_text)
self.add_fixed_in_frame_mobjects(min_text)
self.wait(1)
Binary file not shown.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
from manimlib.imports import*
import math as m

class Constraints(ThreeDScene):
def construct(self):
axes = ThreeDAxes().rotate(m.radians(75))
label_x = TextMobject("$x$").shift([-5.5,1,0]).fade(0.4) #---- x axis
label_y = TextMobject("$y$").shift([1,5.5,0]).rotate(-4.5).fade(0.4) #---- y axis

cylinder = ParametricSurface(
lambda u, v: np.array([
np.cos(TAU * u),
np.sin(TAU * u),
2 * (1-1.5*v)
]),checkerboard_colors=[YELLOW_C,YELLOW_D,YELLOW_E]).shift([0.5,0.5,-0.13]).scale(1)

plane = ParametricSurface(
lambda u, v: np.array([
u,
v,
u+v
]),checkerboard_colors=[TEAL_C,TEAL_D,TEAL_E]).shift([0,0,0]).rotate(m.radians(-40),RIGHT).scale(4).fade(0.3)

c = Circle(color='#FF00FF',fill_opacity=0.3).shift([0.7,-1.3,0.4]).rotate(2.5,UP).scale(1.32)

f_text = TextMobject("$f(x,y)=x^2+y^2+z^2$",color = '#FFA074').scale(0.6).to_corner(UL)
g_text = TextMobject("$g(x,y)=x^2+y^2+1$",color = '#FFA074').scale(0.6).to_corner(UL)
h_text = TextMobject("$h(x,y)=x+y-z=1$",color = '#FFA074').scale(0.6).to_corner(UL)



self.set_camera_orientation(phi=65*DEGREES,theta=95*DEGREES)

self.add(axes)
self.add(label_x)
self.add(label_y)
self.wait(1)
self.add_fixed_in_frame_mobjects(f_text)
self.play(Write(c))
self.wait(1)
self.play(FadeOut(f_text))
self.wait(1)
self.add_fixed_in_frame_mobjects(g_text)
self.play(Write(cylinder))
self.wait(1)
self.play(FadeOut(g_text))
self.wait(1)
self.add_fixed_in_frame_mobjects(h_text)
self.play(Write(plane))
self.wait(1)
self.play(FadeOut(h_text))
self.wait(1)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
from manimlib.imports import *
import numpy as np

class routes(ThreeDScene):
def construct(self):

axes = ThreeDAxes()
self.begin_ambient_camera_rotation(rate=0.08)
self.set_camera_orientation(phi=45 * DEGREES,theta=-65*DEGREES, distance = 45)
function = ParametricFunction(
lambda t: np.array([
1.5*np.cos(t),
1.5*np.sin(t),
t/4
]), t_min = 0, t_max =3*PI).set_color("#0EB1D2")


line = Line(np.array([1.5, 0, 0]), np.array([-1.5, 0, 2.35619])).set_color("#F8F32B")

dot1 = Sphere(radius = 0.1).move_to(np.array([1.5,0,0])).set_color("#74226C")
dot2 = Sphere(radius = 0.1).move_to(np.array([1.5,0,0])).set_color("#74226C")

label1 = TexMobject(r"A").move_to(np.array([1.5,0,0])).set_color("#FCF7F8")
label2 = TexMobject(r"B").move_to(np.array([-1.5,0,2.42])).set_color("#FCF7F8")

title = TexMobject(r"\textit{Work done}",r"\textit{ against gravity is the}", r"\textit{ same for both paths}").set_color("#F1E3F3").move_to(np.array([0,-3,0]))
title[1].set_color("#F8F32B")

self.add(axes)
self.wait()
self.play(ShowCreation(function), ShowCreation(line), run_time = 2)
self.wait()
self.play(MoveAlongPath(dot1, function), run_time = 2)
self.wait()
self.play(MoveAlongPath(dot2, line), run_time = 1.2)
self.wait()
self.add_fixed_in_frame_mobjects(title)
self.play(Write(title))
self.wait()


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading