diff options
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() + |