Skip to content

Commit 7f269ca

Browse files
authored
Update fun_SHM_animation.py
1 parent dbffea4 commit 7f269ca

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

fun_SHM_animation/fun_SHM_animation.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
from IPython.display import HTML
66
from IPython.display import display
77

8-
9-
R = 0.5
10-
phi = 0
11-
wn = 1.0 * np.pi
12-
T = (2*np.pi)/wn
13-
14-
# def SHM_animation(R, phi, w, T):
8+
def SHM_animation(R, phi, w, T):
159

1610
matplotlib.rcParams['animation.embed_limit'] = 50 # Establece el límite en 50 MB
1711

@@ -167,15 +161,5 @@ def update(t):
167161

168162
ani = FuncAnimation(fig, update, frames=np.linspace(0, 3*T, 180), init_func=init, blit=True, interval=75)
169163

170-
# return ani
171-
172-
# # Parámetros
173-
# from fun_SHM_animation import SHM_animation
174-
# R = 0.5
175-
# phi = 0
176-
# wn = 1.0 * np.pi
177-
# T = (2*np.pi)/wn
164+
return ani
178165

179-
# # Function
180-
# ani = SHM_animation(R, phi, wn, T)
181-
# display(HTML(ani.to_jshtml()))

0 commit comments

Comments
 (0)