file_path
stringclasses
1 value
content
stringlengths
0
219k
from manim_imports_ext import * from _2018.lost_lecture import Orbiting from _2018.lost_lecture import ShowWord class LogoGeneration(LogoGenerationTemplate): CONFIG = { "random_seed": 2, } def get_logo_animations(self, logo): layers = logo.spike_layers for layer in layers: ...
# -*- coding: utf-8 -*- from manim_imports_ext import * from _2018.uncertainty import Flash from _2018.WindingNumber import * # Warning, this file uses ContinualChangingDecimal, # which has since been been deprecated. Use a mobject # updater instead class AltTeacherStudentsScene(TeacherStudentsScene): def se...
from manim_imports_ext import * X_COLOR = GREEN Y_COLOR = RED Z_COLOR = BLUE OUTPUT_COLOR = YELLOW INPUT_COLOR = MAROON_B OUTPUT_DIRECTORY = "eola2/cramer" def get_cramer_matrix(matrix, output_vect, index=0): """ The inputs matrix and output_vect should be Matrix mobjects """ new_matrix = np.array(...
from manim_imports_ext import * class HoldUpMultivariableChainRule(TeacherStudentsScene): def construct(self): title = OldTexText("Multivariable chain rule") title.to_edge(UP, buff=MED_SMALL_BUFF) screen = ScreenRectangle() screen.next_to(title, DOWN) morty = self.teacher ...
# -*- coding: utf-8 -*- from manim_imports_ext import * ###### Ben's stuff ######## RADIUS = 2 RADIUS_BUFF_HOR = 1.3 RADIUS_BUFF_VER = 0.5 RADIUS_COLOR = BLUE CIRCUM_COLOR = YELLOW DECIMAL_WIDTH = 0.5 HIGHLIGHT_COLOR = YELLOW # Warning, this file uses ContinualChangingDecimal, # which has since been been depreca...
# -*- coding: utf-8 -*- from manim_imports_ext import * def apply_function_to_center(point_func, mobject): mobject.apply_function_to_position(point_func) def apply_function_to_submobjects(point_func, mobject): mobject.apply_function_to_submobject_positions(point_func) def apply_function_to_points(point_f...
from fractions import Fraction from manim_imports_ext import * from functools import reduce class FractionMobject(VGroup): CONFIG = { "max_height": 1, } def __init__(self, fraction, **kwargs): VGroup.__init__(self, **kwargs) numerator = self.numerator = Integer(fraction.numerator...
from manim_imports_ext import * from _2018.sphere_area import * class MadAtMathologer(PiCreatureScene): def create_pi_creature(self): return Mortimer().to_corner(DR) def construct(self): morty = self.pi_creature self.play(morty.change, "angry") self.wait(3) self.play(m...
from manim_imports_ext import * class WorkOutNumerically(Scene): CONFIG = { "M1_COLOR": TEAL, "M2_COLOR": PINK, } def construct(self): self.add_question() self.add_example() self.compute_rhs() self.compute_lhs() def add_question(self): equation...
from manim_imports_ext import * # Quick note to anyone coming to this file with the # intent of recreating animations from the video. Some # of these, especially those involving AnimatedStreamLines, # can take an extremely long time to run, but much of the # computational cost is just for giving subtle little effec...
from manim_imports_ext import * class ComplexAnalysisOverlay(Scene): def construct(self): words = OldTexText("Complex analysis") words.scale(1.25) words.to_edge(UP) words.add_background_rectangle() self.add(words) self.wait() class AnalyzeZSquared(ComplexTransform...
from manim_imports_ext import * import warnings warnings.warn(""" Warning: This file makes use of ContinualAnimation, which has since been deprecated """) import time import mpmath mpmath.mp.dps = 7 # Warning, this file uses ContinualChangingDecimal, # which has since been been deprecated. Use a mobje...
# -*- coding: utf-8 -*- import scipy from manim_imports_ext import * from _2018.fourier import * import warnings warnings.warn(""" Warning: This file makes use of ContinualAnimation, which has since been deprecated """) FREQUENCY_COLOR = RED USE_ALMOST_FOURIER_BY_DEFAULT = False class GaussianDistributi...
#!/usr/bin/env python # -*- coding: utf-8 -*- from manim_imports_ext import * import warnings warnings.warn(""" Warning: This file makes use of ContinualAnimation, which has since been deprecated """) import types import functools LIGHT_COLOR = YELLOW INDICATOR_RADIUS = 0.7 INDICATOR_STROKE_WIDTH = 1 ...
#!/usr/bin/env python from manim_imports_ext import * from once_useful_constructs.light import * import warnings warnings.warn(""" Warning: This file makes use of ContinualAnimation, which has since been deprecated """) import types import functools LIGHT_COLOR = YELLOW INDICATOR_RADIUS = 0.7 INDICATO...
from _2018.eop.reusables.binary_option import * from _2018.eop.reusables.brick_row import * from _2018.eop.reusables.coin_flip_tree import * from _2018.eop.reusables.coin_flipping_pi_creature import * from _2018.eop.reusables.coin_stacks import * from _2018.eop.reusables.dice import * from _2018.eop.reusables.eop_const...
from manim_imports_ext import * from once_useful_constructs.combinatorics import * nb_levels = 5 dev_x_step = 2 dev_y_step = 5 GRADE_COLOR_1 = RED GRADE_COLOR_2 = BLUE def graded_square(n,k): return Square( side_length = 1, fill_color = graded_color(n,k), fill_opacity = 1, ...
from manim_imports_ext import * from _2018.eop.bayes import IntroducePokerHand SICKLY_GREEN = "#9BBD37" class BayesClassicExampleOpeningQuote(OpeningQuote): CONFIG = { "quote" : [ "When faced with a difficult question, we often " \ "answer an easier one instead, usually without "...
from manim_imports_ext import * #revert_to_original_skipping_status def get_stack( obj1, obj2, n, k, fixed_start = None, fixed_end = None, obj_to_obj_buff = SMALL_BUFF, vertical_buff = MED_SMALL_BUFF, ): stack = VGroup() for indices in it.combinations(list(range(n)), k): term =...
from manim_imports_ext import * class WhatDoesItReallyMean(TeacherStudentsScene): CONFIG = { "default_pi_creature_kwargs": { "color": MAROON_E, "flip_at_start": True, }, } def construct(self): student_q = OldTexText("What does", "``probability''", "\emph{...
from manim_imports_ext import * class Birthday(Scene): def construct(self): sidelength = 6.0 corner = np.array([-sidelength/2,-sidelength/2,0]) nb_days_left = 365.0 toggle = False def probability(): width = rect.get_width() height = rect.get_height...
from manim_imports_ext import * from tqdm import tqdm as ProgressDisplay import scipy #revert_to_original_skipping_status def get_binomial_distribution(n, p): return lambda k : choose(n, k)*(p**(k))*((1-p)**(n-k)) def get_quiz(*questions): q_mobs = VGroup(*list(map(TexText, [ "%d. %s"%(i+1, question...
from manim_imports_ext import * class Introduction(TeacherStudentsScene): CONFIG = { "default_pi_creature_kwargs": { "color": MAROON_E, "flip_at_start": True, }, } def construct(self): self.show_series() self.show_examples() def show_series(self): ...
from manim_imports_ext import * #revert_to_original_skipping_status ######### class BayesOpeningQuote(OpeningQuote): CONFIG = { "quote" : [ "Inside every non-Bayesian there \\\\ is a Bayesian struggling to get out." ], "author" : "Dennis V. Lindley", } class IntroducePoke...
from mobject.geometry import * from _2018.eop.reusables.eop_helpers import * from _2018.eop.reusables.eop_constants import * class CoinFlipTree(VGroup): CONFIG = { "total_width": 12, "level_height": 0.8, "nb_levels": 4, "sort_until_level": 3 } def __init__(self, **kwargs): ...
from mobject.types.vectorized_mobject import * from mobject.svg.tex_mobject import * class BinaryOption(VMobject): CONFIG = { "text_scale" : 0.5 } def __init__(self, mob1, mob2, **kwargs): VMobject.__init__(self, **kwargs) text = OldTexText("or").scale(self.text_scale) mob1.ne...
from manim_imports_ext import * from _2018.eop.reusables.eop_helpers import * from _2018.eop.reusables.eop_constants import * from _2018.eop.reusables.upright_coins import * class BrickRow(VMobject): CONFIG = { "left_color" : COLOR_HEADS, "right_color" : COLOR_TAILS, "height" : 1.0, ...
from mobject.svg.svg_mobject import * from mobject.geometry import * from mobject.numbers import * class DieFace(SVGMobject): def __init__(self, value, **kwargs): self.value = value self.file_name = "Dice-" + str(value) self.ensure_valid_file() SVGMobject.__init__(self, file_n...
from for_3b1b_videos.pi_creature import * from _2018.eop.reusables.eop_constants import * class SicklyPiCreature(PiCreature): CONFIG = { "sick_color": SICKLY_GREEN } def get_slightly_sick(self): self.save_state() self.set_color(self.sick_color) def get_sick(self): ...
from mobject.types.vectorized_mobject import * from animation.animation import * from animation.composition import * from mobject.geometry import Rectangle, Line from utils.rate_functions import * from for_3b1b_videos.pi_creature_scene import * from _2018.eop.reusables.eop_helpers import * from _2018.eop.reusables.eop_...
from constants import * COIN_RADIUS = 0.18 COIN_THICKNESS = 0.4 * COIN_RADIUS COIN_FORESHORTENING = 0.5 COIN_NB_RIDGES = 20 COIN_STROKE_WIDTH = 2 COIN_SEQUENCE_SPACING = 0.1 GRADE_COLOR_1 = COLOR_HEADS = RED_E GRADE_COLOR_2 = COLOR_TAILS = BLUE_C COLOR_HEADS_COIN = RED COLOR_TAILS_COIN = BLUE_E TALLY_BACKGROUND_W...
from manim_imports_ext import * from random import * def text_range(start,stop,step): # a range as a list of strings numbers = np.arange(start,stop,step) labels = [] for x in numbers: labels.append(str(x)) return labels class Histogram(VMobject): CONFIG = { "start_color" : RED, ...
from mobject.geometry import * from mobject.svg.tex_mobject import * from _2018.eop.reusables.upright_coins import * class CoinStack(VGroup): CONFIG = { "coin_thickness": COIN_THICKNESS, "size": 5, "face": FlatCoin, } def init_points(self): for n in range(self.size): ...
from mobject.geometry import * from mobject.svg.tex_mobject import * from utils.color import * from _2018.eop.reusables.eop_helpers import * from _2018.eop.reusables.eop_constants import * class UprightCoin(Circle): # For use in coin sequences CONFIG = { "radius": COIN_RADIUS, "stroke_width": COI...
from utils.color import * from _2018.eop.reusables.eop_constants import * def binary(i): # returns an array of 0s and 1s if i == 0: return [] j = i binary_array = [] while j > 0: jj = j/2 if jj > 0: binary_array.append(j % 2) else: binary_arra...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class ProbabilityDistributions(PiCreatureScene): CONFIG = { "default_pi_creature_kwargs": { "color": MAROON_E, "flip_at_start": False, }, } def construct(self): lag_ratio = 0.2 run_t...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class Chapter1OpeningQuote(OpeningQuote): CONFIG = { "fade_in_kwargs": { "lag_ratio": 0.5, "rate_func": linear, "run_time": 10, }, "text_size" : "\\normalsize", "use_quotatio...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class RandyIsSickOrNot(Scene): def construct(self): title = OldTexText("1 in 200") title.to_edge(UP) randy = SicklyPiCreature() randy.set_height(3) randy.move_to(2*LEFT) randy.chan...
from manim_imports_ext import * from _2018.eop.reusable_imports import * from _2018.eop.chapter1.brick_row_scene import BrickRowScene class EntireBrickWall(BrickRowScene, MovingCameraScene): def setup(self): super(BrickRowScene, self).setup() super(PiCreatureScene, self).setup() def constru...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class IllustrateAreaModelExpectation(Scene): def construct(self): formula = OldTex("E[X] = \sum_{i=1}^N p_i x_i").move_to(3 * LEFT + UP) self.play(Write(formula)) x_scale = 5.0 y_scale = 1.0 prob...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class ShuffleThroughAllSequences(Scene): CONFIG = { "nb_coins" : 20, "run_time" : 5, "fps" : int(1.0/PRODUCTION_QUALITY_FRAME_DURATION), "coin_size" : 0.5, "coin_spacing" : 0.65 } def constru...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class ShowUncertaintyDice(Scene): def throw_a_die(self, run_time = 0.3): eye = np.random.randint(1,7) face = self.row_of_dice.submobjects[eye - 1] self.play( ApplyMethod(face.submobjects[0].set_fill, {"o...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class RandyThinksAboutCoin(PiCreatureScene): def construct(self): randy = self.get_primary_pi_creature() randy.center() self.add(randy) self.wait() h_or_t = BinaryOption(UprightHeads().scale(3), Upri...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class StackingCoins(Scene): def construct(self): h = t = 0 heads_stack = HeadsStack(size = h) heads_stack.next_to(0.5*LEFT + 3*DOWN, UP) tails_stack = TailsStack(size = t) tails_stack.next_to(0.5*RIG...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class MillionFlips(Scene): def construct(self): title = OldTexText("1{,}000{,}000 flips") title.to_edge(UP) self.add(title) small_wait_time = 1.0 / 15 # Um... n_flips_label = OldTexText("\\# Flips: ...
from manim_imports_ext import * from _2018.eop.reusable_imports import * from _2018.eop.combinations import * from _2018.eop.independence import * import itertools as it class RandyFlipsAndStacks(Scene): def construct(self): randy = CoinFlippingPiCreature(color = MAROON_E) randy.scale(0.5).to_ed...
from manim_imports_ext import * from _2018.eop.reusable_imports import * from _2018.eop.independence import * class QuizResult(PiCreatureScene): CONFIG = { "pi_creatures_start_on_screen" : False, "random_seed" : 0 } def construct(self): def get_example_quiz(): quiz = g...
from manim_imports_ext import * class IllustrateAreaModelBayes(Scene): def construct(self): color_A = YELLOW color_not_A = YELLOW_E color_B = MAROON color_not_B = MAROON_E opacity_B = 0.7 # show independent events sample_space_width = sample_spac...
from manim_imports_ext import * class WhatDoesItReallyMean(TeacherStudentsScene): CONFIG = { "default_pi_creature_kwargs": { "color": MAROON_E, "flip_at_start": True, }, } def construct(self): student_q = OldTexText( "What does", "``probability'...
from manim_imports_ext import * from _2018.eoc.chapter8 import * import scipy.special class IllustrateAreaModelErf(GraphScene): CONFIG = { "x_min" : -3.0, "x_max" : 3.0, "y_min" : 0, "y_max" : 1.0, "num_rects": 400, "y_axis_label" : "", "x_axis_label" : "",...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class GenericMorphBrickRowIntoHistogram(Scene): CONFIG = { "level" : 3, "bar_width" : 2.0, "bar_anchor_height" : -3.0, "show_tallies" : False, "show_nb_flips" : True } def construct(self): ...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class ShowUncertaintyDarts(Scene): def throw_darts(self, n, run_time = 1): points = np.random.normal( loc = self.dartboard.get_center(), scale = 0.6 * np.ones(3), size = (n,3) ) ...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class JustFlipping(Scene): def construct(self): randy = CoinFlippingPiCreature(color = MAROON_E, flip_height = 1).shift(2 * DOWN) self.add(randy) self.wait(2) for i in range(10): self.wait() ...
from manim_imports_ext import * class ProbabilityRect(VMobject): CONFIG = { "unit_width" : 2, "unit_height" : 2, "alignment" : LEFT, "color": YELLOW, "opacity": 1.0, "num_decimal_places": 2, "use_percent" : False } def __init__(self, p0, **kwargs): ...
from manim_imports_ext import * from _2018.eop.reusable_imports import * class BrickRowScene(PiCreatureScene): def split_tallies(self, row, direction = DOWN): # Split all tally symbols at once and move the copies # either horizontally on top of the brick row # or diagonally into the bric...
from manim_imports_ext import * class Introduction(TeacherStudentsScene): CONFIG = { "default_pi_creature_kwargs": { "color": MAROON_E, "flip_at_start": True, }, } def construct(self): self.show_series() self.show_examples() def show_series(self): ...
from manim_imports_ext import * def print_permutation(index_list): n = max(max(index_list), len(index_list)) for i in range(0,n): if index_list[i] > n - i: raise Exception("Impossible indices!") #print "given index list:", index_list perm_list = n * ["_"] alphabet = ["A", "B"...
from manim_imports_ext import * def get_factors(n): return filter( lambda k: (n % k) == 0, range(1, n) ) class AmicableNumbers(Scene): CONFIG = { "n1": 28, "n2": 284, "colors": [ BLUE_C, BLUE_B, BLUE_D, GREY_BROWN, ...
from manim_imports_ext import * class PrimePiEPttern(Scene): def construct(self): self.add(FullScreenFadeRectangle(fill_color=WHITE, fill_opacity=1)) tex0 = OldTex( "\\frac{1}{1^2}", "+" "\\frac{1}{2^2}", "+" "\\frac{1}{3^2}", "+" "\\frac{1}{4^2}", ...
from manim_imports_ext import * class PowersOfTwo(MovingCameraScene): def construct(self): R = 3 circle = Circle(radius=R) circle.set_stroke(BLUE, 2) n = 101 dots = VGroup() numbers = VGroup() points = [ rotate_vector(R * DOWN, k * TAU / n) ...
from manim_imports_ext import * OUTPUT_DIRECTORY = "hyperdarts" BROWN_PAPER = "#958166" class HyperdartScene(MovingCameraScene): CONFIG = { "square_width": 6, "square_style": { "stroke_width": 2, "fill_color": BLUE, "fill_opacity": 0.5, }, "cir...
from manim_imports_ext import * import json import numbers OUTPUT_DIRECTORY = "spirals" INV_113_MOD_710 = 377 # Inverse of 113 mode 710 INV_7_MOD_44 = 19 def is_prime(n): if n < 2: return False for k in range(2, int(np.sqrt(n)) + 1): if n % k == 0: return False return True ...
from manim_imports_ext import * import json class IntroduceIMO(Scene): CONFIG = { "num_countries": 130, "use_real_images": True, # "use_real_images": False, "include_labels": False, "camera_config": {"background_color": GREY_E}, "random_seed": 6, "year": 201...
from manim_imports_ext import * class TriangleModuliSpace(Scene): CONFIG = { "camera_config": { "background_image": "chalkboard", }, "degen_color": GREEN_D, "x1_color": GREEN_B, "y1_color": RED, "x_eq_y_color": YELLOW, "right_color": TEAL, ...
from manim_imports_ext import * from _2017.mug import HappyHolidays # For Q&A Video class Questions(Scene): def construct(self): kw = { "alignment": "" } TexText.CONFIG.update(kw) questions = VGroup( OldTexText( "Who is your favorite mathema...
from manim_imports_ext import * class PrimePiEPttern(Scene): def construct(self): self.add(FullScreenFadeRectangle(fill_color=WHITE, fill_opacity=1)) tex0 = OldTex( "\\frac{1}{1^2}", "+" "\\frac{1}{2^2}", "+" "\\frac{1}{3^2}", "+" "\\frac{1}{4^2}", ...
from manim_imports_ext import * class GREquations(Scene): CONFIG = { "mu_color": BLUE_E, "nu_color": RED_E, "camera_config": { "background_color": WHITE, }, "tex_config": { "color": BLACK, "background_stroke_width": 0, }, } ...
from manim_imports_ext import * import scipy.integrate OUTPUT_DIRECTORY = "bayes/part1" HYPOTHESIS_COLOR = YELLOW NOT_HYPOTHESIS_COLOR = GREY EVIDENCE_COLOR1 = BLUE_C EVIDENCE_COLOR2 = BLUE_E NOT_EVIDENCE_COLOR1 = GREY NOT_EVIDENCE_COLOR2 = GREY_D # def get_bayes_formula(expand_denominator=False): t2c = { ...
from manim_imports_ext import * from _2019.bayes.part1 import BayesDiagram from _2019.bayes.part1 import LibrarianIcon from _2019.bayes.part1 import Person from _2019.bayes.part1 import RandomnessVsProportions OUTPUT_DIRECTORY = "bayes/footnote" TEX_TO_COLOR_MAP = { "A": YELLOW, "B": BLUE, } MID_COLOR = interp...
from manim_imports_ext import * from _2019.clacks.question import * from _2018.div_curl import ShowTwoPopulations OUTPUT_DIRECTORY = "clacks/solution1" class FromPuzzleToSolution(MovingCameraScene): def construct(self): big_rect = FullScreenFadeRectangle() big_rect.set_fill(GREY_D, 0.5) ...
#!/usr/bin/env python from manim_imports_ext import * from _2019.clacks.question import BlocksAndWallExample class NameBump(BlocksAndWallExample): CONFIG = { "name": "Grant Sanderson", "sliding_blocks_config": { "block1_config": { "mass": 1e6, "velocity"...
from manim_imports_ext import * OUTPUT_DIRECTORY = "clacks/question" class Block(Square): CONFIG = { "mass": 1, "velocity": 0, "width": None, "label_text": None, "label_scale_value": 0.8, "fill_opacity": 1, "stroke_width": 3, "stroke_color": WHITE,...
from _2019.clacks import question from _2019.clacks.solution2 import block_collision_scenes from _2019.clacks.solution2 import mirror_scenes from _2019.clacks.solution2 import pi_creature_scenes from _2019.clacks.solution2 import position_phase_space from _2019.clacks.solution2 import simple_scenes from _2019.clacks.so...
from manim_imports_ext import * class OnAnsweringTwice(TeacherStudentsScene): def construct(self): question = OldTexText("Why $\\pi$?") question.move_to(self.screen) question.to_edge(UP) other_questions = VGroup( OldTexText("Frequency of collisions?"), OldTe...
from manim_imports_ext import * class MirrorScene(Scene): CONFIG = { "center": DOWN + 3 * LEFT, "line_length": FRAME_WIDTH, "start_theta": np.arctan(0.25), "start_y_offset": 0.5, "start_x_offset": 8, "arc_config": { "radius": 1, "stroke_color...
from manim_imports_ext import * from _2019.clacks.question import Block from _2019.clacks.question import Wall from _2019.clacks.question import ClackFlashes class PositionPhaseSpaceScene(Scene): CONFIG = { "rescale_coordinates": True, "wall_x": -6, "wall_config": { "height": 1...
from manim_imports_ext import * from _2019.clacks.solution2.position_phase_space import ShowMomentumConservation class ConnectionToOptics(Scene): def construct(self): e_group, m_group = k_groups = self.get_kinematics_groups() c_group, a_group = o_groups = self.get_optics_groups() arrows = ...
from manim_imports_ext import * from _2018.lost_lecture import ShowWord from _2019.clacks.solution2.mirror_scenes import ReflectWorldThroughMirrorNew from _2019.clacks.question import Thumbnail class WrapperScene(Scene): CONFIG = { "title": "Title", "shade_of_grey": "#333333" } def constr...
from manim_imports_ext import * class PreviousTwoVideos(BlocksAndWallExample): CONFIG = { "sliding_blocks_config": { "block1_config": { "mass": 1e2, "velocity": -2, "width": 4, "distance": 8, }, "block2_co...
from _2019.diffyq.part1.pendulum import * from _2019.diffyq.part1.staging import * from _2019.diffyq.part1.pi_scenes import * from _2019.diffyq.part1.phase_space import * from _2019.diffyq.part1.wordy_scenes import * OUTPUT_DIRECTORY = "diffyq/part1" SCENES_IN_ORDER = [ WhenChangeIsEasier, VectorFieldTest, ...
from _2019.diffyq.part2.staging import * from _2019.diffyq.part2.fourier_series import * from _2019.diffyq.part2.heat_equation import * from _2019.diffyq.part2.pi_scenes import * from _2019.diffyq.part2.wordy_scenes import * OUTPUT_DIRECTORY = "diffyq/part2" SCENES_IN_ORDER = [ PartTwoOfTour, HeatEquationIntro...
from _2019.diffyq.part4.staging import * from _2019.diffyq.part4.fourier_series_scenes import * from _2019.diffyq.part4.pi_creature_scenes import * from _2019.diffyq.part4.three_d_graphs import * from _2019.diffyq.part4.temperature_scenes import * from _2019.diffyq.part4.complex_functions import * from _2019.diffyq.par...
import numpy as np # Physical constants g = 9.8 L = 2 mu = 0.1 THETA_0 = np.pi / 3 # 60 degrees THETA_DOT_0 = 0 # No initial angular velocity # Definition of ODE def get_theta_double_dot(theta, theta_dot): return -mu * theta_dot - (g / L) * np.sin(theta) # Solution to the differential equation def theta(t): ...
from _2019.diffyq.part4.long_fourier_scenes import * OUTPUT_DIRECTORY = "diffyq/part4" SCENES_IN_ORDER = [ ZoomedInFourierSeriesExample, FourierSeriesExampleWithRectForZoom, ZoomedInFourierSeriesExample100x, FourierOfFourier100xZoom, FourierOfFourierZoomedIn, FourierOfFourier, SigmaZoomedIn...
from _2019.diffyq.part5.staging import * OUTPUT_DIRECTORY = "diffyq/part5" SCENES_IN_ORDER = [ ]
from _2019.diffyq.part3.staging import * from _2019.diffyq.part3.temperature_graphs import * from _2019.diffyq.part3.pi_creature_scenes import * from _2019.diffyq.part3.wordy_scenes import * from _2019.diffyq.part3.discrete_case import * OUTPUT_DIRECTORY = "diffyq/part3" SCENES_IN_ORDER = [ LastChapterWrapper, ...
from manim_imports_ext import * from _2019.diffyq.part3.staging import FourierSeriesIllustraiton from _2019.diffyq.part2.wordy_scenes import WriteHeatEquationTemplate class FourierName(Scene): def construct(self): name = OldTexText("Joseph Fourier") name.scale(1.5) self.add(name) class F...
from manim_imports_ext import * from _2019.diffyq.part4.fourier_series_scenes import ComplexFourierSeriesExample from manimlib.once_useful_constructs.fractals import HilbertCurve class FourierSeriesExampleWithRectForZoom(ComplexFourierSeriesExample): CONFIG = { "n_vectors": 100, "slow_factor": 0....
from manim_imports_ext import * class WhyWouldYouCare(TeacherStudentsScene): def construct(self): self.student_says( "Who cares!", target_mode="sassy", index=2, added_anims=[self.teacher.change, "guilty"], ) self.wait() self.play( ...
from manim_imports_ext import * from _2019.diffyq.part2.heat_equation import BringTwoRodsTogether from _2019.diffyq.part3.staging import FourierSeriesIllustraiton class StepFunctionExample(BringTwoRodsTogether, FourierSeriesIllustraiton): CONFIG = { "axes_config": { "y_min": -1.5, ...
from manim_imports_ext import * from _2019.diffyq.part3.temperature_graphs import TemperatureGraphScene from _2019.diffyq.part2.wordy_scenes import WriteHeatEquationTemplate class ShowLinearity(WriteHeatEquationTemplate, TemperatureGraphScene): CONFIG = { "temp_text": "Temp", "alpha": 0.1, ...
from manim_imports_ext import * from _2019.diffyq.part2.fourier_series import FourierOfTrebleClef from _2019.diffyq.part4.complex_functions import TRangingFrom0To1 from _2019.diffyq.part4.complex_functions import SimpleComplexExponentExample class ComplexFourierSeriesExample(FourierOfTrebleClef): CONFIG = { ...
from manim_imports_ext import * class GeneralizeToComplexFunctions(Scene): CONFIG = { "axes_config": { "x_min": 0, "x_max": 10, "x_axis_config": { "stroke_width": 2, }, "y_min": -2.5, "y_max": 2.5, "y_axis_...
from manim_imports_ext import * from _2019.diffyq.part1.staging import TourOfDifferentialEquations class PartTwoOfTour(TourOfDifferentialEquations): CONFIG = { "zoomed_thumbnail_index": 1, } def construct(self): self.add_title() self.show_thumbnails() self.zoom_in_to_one_t...
from manim_imports_ext import * TIME_COLOR = YELLOW X_COLOR = GREEN def get_heat_equation(): pass def temperature_to_color(temp, min_temp=-1, max_temp=1): colors = [BLUE, TEAL, GREEN, YELLOW, "#ff0000"] alpha = inverse_interpolate(min_temp, max_temp, temp) index, sub_alpha = integer_interpolate( ...
from manim_imports_ext import * from _2019.diffyq.part2.shared_constructs import * class TwoDBodyWithManyTemperatures(ThreeDScene): CONFIG = { "cells_per_side": 20, "body_height": 6, } def construct(self): self.introduce_body() self.show_temperature_at_all_points() de...
from manim_imports_ext import * # import scipy class FourierCirclesScene(Scene): CONFIG = { "n_vectors": 10, "big_radius": 2, "colors": [ BLUE_D, BLUE_C, BLUE_E, GREY_BROWN, ], "circle_style": { "stroke_width": 2, ...
from manim_imports_ext import * from _2019.diffyq.part2.wordy_scenes import WriteHeatEquationTemplate class ReactionsToInitialHeatEquation(PiCreatureScene): def construct(self): randy = self.pi_creature randy.set_color(BLUE_C) randy.center() point = VectorizedPoint().next_to(randy...
from manim_imports_ext import * class WriteHeatEquationTemplate(Scene): CONFIG = { "tex_mobject_config": { "tex_to_color_map": { "{T}": WHITE, "{t}": YELLOW, "{x}": GREEN, "{y}": RED, "{z}": BLUE, "...
from manim_imports_ext import * from _2019.diffyq.part1.shared_constructs import * from _2019.diffyq.part1.pendulum import Pendulum from _2019.diffyq.part1.pendulum import ThetaVsTAxes from _2019.diffyq.part1.phase_space import IntroduceVectorField from _2018.div_curl import PhaseSpaceOfPopulationModel from _2018.div_c...