Small scoping on alt_calc

This commit is contained in:
Grant Sanderson
2018-05-07 13:43:39 -07:00
parent 405349bb68
commit a69a28c718

View File

@ -47,19 +47,18 @@ class WriteOpeningWords(Scene):
class StartingCalc101(PiCreatureScene):
CONFIG = {
# "default_pi_creature_kwargs": {
# "color": BLUE,
# "flip_at_start": False,
# },
}
def construct(self):
randy = self.pi_creature
deriv_string = "\\frac{df}{dx}(x) = \\lim(\\delta x \\to \\infty)" + \
"{f(x + \\delta x) - f(x) \\over \\delta x}"
equations = VGroup(
TexMobject(*break_up_string_by_terms(deriv_string, "\\delta x"))
deriv_equation = TexMobject(
"\\frac{df}{dx}(x) = \\lim(\\Delta x \\to \\infty)" +
"{f(x + \\Delta x) - f(x) \\over \\Delta x}",
tex_to_color_map={"\\Delta x": BLUE}
)
self.add(deriv_equation)
equations = VGroup(deriv_equation)
title = TextMobject("Calculus 101")
title.to_edge(UP)
h_line = Line(LEFT, RIGHT)