equal
deleted
inserted
replaced
345 \item Define a function as below |
345 \item Define a function as below |
346 \end{itemize} |
346 \end{itemize} |
347 \begin{lstlisting} |
347 \begin{lstlisting} |
348 In []: def pend_int(initial, t): |
348 In []: def pend_int(initial, t): |
349 .... theta, omega = initial |
349 .... theta, omega = initial |
350 .... g, L = -9.81, 0.2 |
350 .... g, L = 9.81, 0.2 |
351 .... f=[omega, -(g/L)*sin(theta)] |
351 .... f=[omega, -(g/L)*sin(theta)] |
352 .... return f |
352 .... return f |
353 .... |
353 .... |
354 \end{lstlisting} |
354 \end{lstlisting} |
355 \end{frame} |
355 \end{frame} |