From bcd70e78f623191176ece96184ec1fa39c6f30b1 Mon Sep 17 00:00:00 2001 From: Padmapriya Mohan Date: Mon, 20 Jul 2020 14:33:10 +0530 Subject: files with gifs --- .../Curl and Div/DivCurl_file12_ponder-curl.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py (limited to 'FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py') 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() + -- cgit