diff options
author | Padmapriya Mohan | 2020-07-20 14:33:10 +0530 |
---|---|---|
committer | Padmapriya Mohan | 2020-07-20 14:33:10 +0530 |
commit | bcd70e78f623191176ece96184ec1fa39c6f30b1 (patch) | |
tree | af86d500ce2438c971fd45a61c3bc7be11a4a1da /FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py | |
parent | d72ba1b05700096a2c42e9616e30a939e9b921a6 (diff) | |
download | FSF-mathematics-python-code-archive-bcd70e78f623191176ece96184ec1fa39c6f30b1.tar.gz FSF-mathematics-python-code-archive-bcd70e78f623191176ece96184ec1fa39c6f30b1.tar.bz2 FSF-mathematics-python-code-archive-bcd70e78f623191176ece96184ec1fa39c6f30b1.zip |
files with gifs
Diffstat (limited to 'FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py')
-rw-r--r-- | FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py b/FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py new file mode 100644 index 0000000..be8a17a --- /dev/null +++ b/FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py @@ -0,0 +1,17 @@ +from manimlib.imports import * +import numpy as np + +def curl(coordinate): + x,y = coordinate[:2] + return np.array([ + y, + 0, + 0 + ]) + +class Ponder_curl(Scene): + def construct(self): + vf = VectorField(curl) + self.add(vf) + self.wait() + |