presentations/ode.tex
changeset 87 62be6012121f
parent 86 a63a14de8584
child 90 314a711c042f
equal deleted inserted replaced
86:a63a14de8584 87:62be6012121f
    76 Solving ordinary differential equations.
    76 Solving ordinary differential equations.
    77   \end{block}
    77   \end{block}
    78   \begin{block}{Prerequisite}
    78   \begin{block}{Prerequisite}
    79     \begin{itemize}
    79     \begin{itemize}
    80     \item Understanding of Arrays.
    80     \item Understanding of Arrays.
    81     \item Python functions.
    81     \item functions and lists
    82     \item lists.
       
    83     \end{itemize}    
    82     \end{itemize}    
    84   \end{block}
    83   \end{block}
       
    84 \end{frame}
       
    85 
       
    86 \begin{frame}[fragile]
       
    87 \frametitle{Solving ODEs using SciPy}
       
    88 \begin{itemize}
       
    89 \item Let's consider the spread of an epidemic in a population
       
    90 \item $\frac{dy}{dt} = ky(L-y)$ gives the spread of the disease
       
    91 \item L is the total population.
       
    92 \item Use L = 25000, k = 0.00003, y(0) = 250
       
    93 \end{itemize}
       
    94 \end{frame}
       
    95 
       
    96 \begin{frame}[fragile]
       
    97 \frametitle{ODEs - Simple Pendulum}
       
    98 We shall use the simple ODE of a simple pendulum. 
       
    99 \begin{equation*}
       
   100 \ddot{\theta} = -\frac{g}{L}sin(\theta)
       
   101 \end{equation*}
       
   102 \begin{itemize}
       
   103 \item This equation can be written as a system of two first order ODEs
       
   104 \end{itemize}
       
   105 \begin{align}
       
   106 \dot{\theta} &= \omega \\
       
   107 \dot{\omega} &= -\frac{g}{L}sin(\theta) \\
       
   108  \text{At}\ t &= 0 : \nonumber \\
       
   109  \theta = \theta_0(10^o)\quad & \&\quad  \omega = 0\ (Initial\ values)\nonumber 
       
   110 \end{align}
    85 \end{frame}
   111 \end{frame}
    86 
   112 
    87 \begin{frame}[fragile]
   113 \begin{frame}[fragile]
    88   \frametitle{Summary}
   114   \frametitle{Summary}
    89   \begin{block}{}
   115   \begin{block}{}