mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Moving leibniz to old_projects
This commit is contained in:
@ -2548,7 +2548,7 @@ class IntroduceRecipe(Scene):
|
|||||||
self.integer_factorization, DOWN,
|
self.integer_factorization, DOWN,
|
||||||
aligned_edge = LEFT
|
aligned_edge = LEFT
|
||||||
)
|
)
|
||||||
for factor, mob in zip(factors, factorization[1::]):
|
for factor, mob in zip(factors, factorization[1:]):
|
||||||
mob.underlying_number = factor
|
mob.underlying_number = factor
|
||||||
y = complex(factor).imag
|
y = complex(factor).imag
|
||||||
if y == 0:
|
if y == 0:
|
||||||
@ -2568,7 +2568,7 @@ class IntroduceRecipe(Scene):
|
|||||||
mover = prime_mob.copy()
|
mover = prime_mob.copy()
|
||||||
mover.target = gauss_prime_mob
|
mover.target = gauss_prime_mob
|
||||||
movers.add(mover)
|
movers.add(mover)
|
||||||
if complex(gauss_prime).imag > 0:
|
if abs(complex(gauss_prime).imag) > 0:
|
||||||
index += 1
|
index += 1
|
||||||
mover = prime_mob.copy()
|
mover = prime_mob.copy()
|
||||||
mover.target = factorization[index+1]
|
mover.target = factorization[index+1]
|
||||||
@ -2947,7 +2947,7 @@ class RecipeFor125(IntroduceRecipe):
|
|||||||
"gaussian_factors" : [
|
"gaussian_factors" : [
|
||||||
complex(2, -1), complex(2, 1),
|
complex(2, -1), complex(2, 1),
|
||||||
complex(2, -1), complex(2, 1),
|
complex(2, -1), complex(2, 1),
|
||||||
complex(2, -1), complex(2, 1),
|
complex(2, -1), complex(2, 1),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
def construct(self):
|
def construct(self):
|
||||||
@ -2956,13 +2956,13 @@ class RecipeFor125(IntroduceRecipe):
|
|||||||
self.add_title()
|
self.add_title()
|
||||||
self.show_ordinary_factorization()
|
self.show_ordinary_factorization()
|
||||||
self.subfactor_ordinary_factorization()
|
self.subfactor_ordinary_factorization()
|
||||||
|
|
||||||
self.revert_to_original_skipping_status()
|
self.revert_to_original_skipping_status()
|
||||||
self.organize_factors_into_columns()
|
self.organize_factors_into_columns()
|
||||||
self.take_product_of_columns()
|
# self.take_product_of_columns()
|
||||||
self.mark_left_product_as_result()
|
# self.mark_left_product_as_result()
|
||||||
self.swap_factors()
|
# self.swap_factors()
|
||||||
self.write_last_step()
|
# self.write_last_step()
|
||||||
|
|
||||||
class StateFourChoices(TeacherStudentsScene):
|
class StateFourChoices(TeacherStudentsScene):
|
||||||
def construct(self):
|
def construct(self):
|
Reference in New Issue
Block a user