-
Notifications
You must be signed in to change notification settings - Fork 0
/
mathSymbols.py
42 lines (35 loc) · 1.28 KB
/
mathSymbols.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from manimlib.imports import *
import os
import pyclbr
import math
class integers(Scene):
def construct(self):
question = TextMobject("What does $\\mathbb{Z}$ mean?")
self.play(FadeIn(question))
self.wait(3)
self.play(FadeOut(question))
awnser = TextMobject("It is the set of any whole number (ie no fractions allowed)")
number_line = NumberLine(include_numbers=True)
awnser.next_to(number_line, UP)
awnser_animation = [
FadeIn(awnser),
FadeIn(number_line)
]
self.play(*awnser_animation)
self.wait(4)
class reals(Scene):
def construct(self):
question = TextMobject("What does $\\mathbb{R}$ mean?")
self.play(FadeIn(question))
self.wait(3)
self.play(FadeOut(question))
awnser = TextMobject("It is the set of any real number (ie decimals allowed)")
numbers_to_show = [-5,-4.5,-4,-3.5,-3,-2.5]
number_line = NumberLine(tick_frequency=.1,numbers_to_show=numbers_to_show, include_numbers=True)
awnser.next_to(number_line, UP)
awnser_animation = [
FadeIn(awnser),
FadeIn(number_line)
]
self.play(*awnser_animation)
self.wait(4)