mirror of
https://github.com/3b1b/videos.git
synced 2025-09-18 21:38:53 +00:00
New scenes for Newton Fractal
This commit is contained in:
parent
f75130d3a5
commit
f22555f347
3 changed files with 1561 additions and 62 deletions
File diff suppressed because it is too large
Load diff
|
@ -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]
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue