summaryrefslogtreecommitdiff
path: root/FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py
diff options
context:
space:
mode:
authorVaishnavi2020-07-28 00:54:56 +0530
committerGitHub2020-07-28 00:54:56 +0530
commit5b07b9ea49918b80f6f17796071de86ba30ec46c (patch)
treecd21ca0431f4c170387110f1e957d42ecd197ae2 /FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py
parent1cddd7b803966ec1adb7043d65bf4964994543c7 (diff)
parent15fc46198f69a6563b0348491efdf88a2dca3ef7 (diff)
downloadFSF-mathematics-python-code-archive-5b07b9ea49918b80f6f17796071de86ba30ec46c.tar.gz
FSF-mathematics-python-code-archive-5b07b9ea49918b80f6f17796071de86ba30ec46c.tar.bz2
FSF-mathematics-python-code-archive-5b07b9ea49918b80f6f17796071de86ba30ec46c.zip
Merge pull request #7 from FOSSEE/master
Update fork repo. DONE
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.py17
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()
+