summaryrefslogtreecommitdiff
path: root/FSF-2020/calculus
diff options
context:
space:
mode:
authorPurusharth Saxena2020-07-10 17:57:52 +0530
committerGitHub2020-07-10 17:57:52 +0530
commitab4118105cda93671715019b6b25712bd2baef95 (patch)
tree992f13e5b07458667612e77a5352678a1c0e287b /FSF-2020/calculus
parent28e7f4ce0a8bafed22826e1693b495f8f65a3f1f (diff)
parentf9e839936ae4a585be0abe56251099f067dbc94d (diff)
downloadFSF-mathematics-python-code-archive-ab4118105cda93671715019b6b25712bd2baef95.tar.gz
FSF-mathematics-python-code-archive-ab4118105cda93671715019b6b25712bd2baef95.tar.bz2
FSF-mathematics-python-code-archive-ab4118105cda93671715019b6b25712bd2baef95.zip
Merge pull request #61 from stayaryan/patch-7
Create Test1.py
Diffstat (limited to 'FSF-2020/calculus')
-rw-r--r--FSF-2020/calculus/intro-to-calculus/limit/Test1.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/FSF-2020/calculus/intro-to-calculus/limit/Test1.py b/FSF-2020/calculus/intro-to-calculus/limit/Test1.py
new file mode 100644
index 0000000..bd7d2a6
--- /dev/null
+++ b/FSF-2020/calculus/intro-to-calculus/limit/Test1.py
@@ -0,0 +1,34 @@
+from manimlib.imports import *
+class Test1(GraphScene):
+ CONFIG = {
+ "y_max" : 5,
+ "y_min" : -5,
+ "x_max" : 5,
+ "x_min" : -5,
+ "y_tick_frequency" : 1,
+ "x_tick_frequency" : 1,
+ "axes_color" : BLUE,
+ "num_graph_anchor_points": 3000, #this is the number of points that graph manim
+ "graph_origin" : ORIGIN,
+ "x_labeled_nums": list(range(-5,6)),
+ "y_labeled_nums": list(range(-5,6)),
+ "x_axis_label":"$x$",
+ "y_axis_label":"${ f }_{ 1 }(x)$"
+ }
+ def construct(self):
+ self.setup_axes()
+ cir1 = Circle(radius = 0.1, color = BLUE)
+ graph_1 = self.get_graph(lambda x : x+2,
+ color = GREEN,
+ x_min = -5, # Domain 1
+ x_max = +1.9
+ )
+ graph_2 =self.get_graph(lambda x : x+2,
+ color = GREEN,
+ x_min = 2.1, # Domain 2
+ x_max = 5
+ )
+ cir1.move_to(np.array([1,2,0]))
+ self.play(ShowCreation(graph_1))
+ self.play(ShowCreation(cir1))
+ self.play(ShowCreation(graph_2))