diff options
author | Purusharth Saxena | 2020-07-20 14:49:01 +0530 |
---|---|---|
committer | GitHub | 2020-07-20 14:49:01 +0530 |
commit | 2a002d6106850ac3002c1ef8893df1a3352ea0ce (patch) | |
tree | 5bb70edfb838ffe86e0a0a5850df9fcab5702eaf /FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py | |
parent | 5525ce2c688e64385c43f0e31679bc76e3875aae (diff) | |
parent | bcd70e78f623191176ece96184ec1fa39c6f30b1 (diff) | |
download | FSF-mathematics-python-code-archive-2a002d6106850ac3002c1ef8893df1a3352ea0ce.tar.gz FSF-mathematics-python-code-archive-2a002d6106850ac3002c1ef8893df1a3352ea0ce.tar.bz2 FSF-mathematics-python-code-archive-2a002d6106850ac3002c1ef8893df1a3352ea0ce.zip |
Merge pull request #84 from mohan-padmapriya/add-gifs
Add 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() + |