New scenes for Newton Fractal

This commit is contained in:
Grant Sanderson 2021-10-01 12:35:02 -07:00
parent f75130d3a5
commit f22555f347
3 changed files with 1561 additions and 62 deletions

File diff suppressed because it is too large Load diff

View file

@ -6,9 +6,9 @@ def roots_to_coefficients(roots):
return [
((-1)**(n - k)) * sum(
np.prod(tup)
for tup in it.combinations(roots, k + 1)
for tup in it.combinations(roots, n - k)
)
for k in range(n - 1, -1, -1)
for k in range(n)
] + [1]

View file

@ -39,7 +39,7 @@ def stage_scenes(module_name):
# TODO, fix this
animation_dir = os.path.join(
os.path.expanduser('~'),
"Dropbox/3Blue1Brown/videos/2021/matrix_exp/videos"
"Dropbox/3Blue1Brown/videos/2021/poly_fractal/videos"
)
#
files = os.listdir(animation_dir)