diff options
author | Somnath Pandit | 2020-07-02 15:37:42 +0530 |
---|---|---|
committer | Somnath Pandit | 2020-07-02 15:37:42 +0530 |
commit | 30e1c7072158642732aee18a87a803955c15d94a (patch) | |
tree | 7a307f653567cdd4517d61c0ead69a2397ff4342 /FSF-2020 | |
parent | d193d392587d0f67eb4e8993324ec5d633695f3b (diff) | |
download | FSF-mathematics-python-code-archive-30e1c7072158642732aee18a87a803955c15d94a.tar.gz FSF-mathematics-python-code-archive-30e1c7072158642732aee18a87a803955c15d94a.tar.bz2 FSF-mathematics-python-code-archive-30e1c7072158642732aee18a87a803955c15d94a.zip |
unfinished work
Diffstat (limited to 'FSF-2020')
-rw-r--r-- | FSF-2020/calculus-of-several-variables/integrals-of-multivariable-functions/line-integrals/unfinished_vector_line_integral.py | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/FSF-2020/calculus-of-several-variables/integrals-of-multivariable-functions/line-integrals/unfinished_vector_line_integral.py b/FSF-2020/calculus-of-several-variables/integrals-of-multivariable-functions/line-integrals/unfinished_vector_line_integral.py index 410ea98..2a6467d 100644 --- a/FSF-2020/calculus-of-several-variables/integrals-of-multivariable-functions/line-integrals/unfinished_vector_line_integral.py +++ b/FSF-2020/calculus-of-several-variables/integrals-of-multivariable-functions/line-integrals/unfinished_vector_line_integral.py @@ -84,7 +84,7 @@ class LineIntegrationProcess(SpecialThreeDScene): self.get_line_of_int() # self.begin_ambient_camera_rotation(rate=0.04) self.get_dot_product_values() - '''self.get_field_values_on_line() + '''self.get_dot_prod_values_on_line() self.wait(1.5) self.area=self.get_area() area_text=TextMobject("Line"," Integral in the",r" scalar field\\"," means this" ,"area") @@ -132,7 +132,7 @@ class LineIntegrationProcess(SpecialThreeDScene): ) self.add_fixed_in_frame_mobjects(line_of_int_text) - self.play(Write(line_of_int_text)) + # self.play(Write(line_of_int_text)) self.wait(.5) self.play(ShowCreation(line_of_int),run_time=1.5) # self.add(line_of_int) @@ -142,15 +142,20 @@ class LineIntegrationProcess(SpecialThreeDScene): def get_dot_product_values(self): self.get_vector_and_tangent() - + self.play(ApplyMethod( + t_tracker.set_value, PI/2, + rate_func=linear, + run_time=.5, + ) + ) def get_vector_and_tangent(self): t_tracker = ValueTracker(0) self.t_tracker = t_tracker t = t_tracker.get_value - coord = [np.cos(t()), np.sin(t())] - self.show_vectors(coord) + coord = [np.cos(t()), np.sin(t()), 0] + self.show_vector(coord) self.show_tangent(coord) @@ -193,7 +198,8 @@ class LineIntegrationProcess(SpecialThreeDScene): )) self.dot_sym=dot_sym - def get_field_values_on_line(self): + + """def get_dot_prod_values_on_line(self): self.remove(self.line_of_int_text) values_on_line_text=TextMobject("Values"," of"," function","on the ","line") @@ -217,8 +223,8 @@ class LineIntegrationProcess(SpecialThreeDScene): # self.add(values_on_surface) self.values_on_surface=values_on_surface - self.values_on_line_text=values_on_line_text - + self.values_on_line_text=values_on_line_text""" + def trasform_to_graphs(self): on_surface_graph=(self.get_graph( |