day1/session5.tex
changeset 366 ec4cb3ba7f09
parent 358 162e3e453920
child 373 f04eca8b2f3d
equal deleted inserted replaced
365:2cda9b04f142 366:ec4cb3ba7f09
    76 \title[Exercises]{Exercises}
    76 \title[Exercises]{Exercises}
    77 
    77 
    78 \author[FOSSEE] {FOSSEE}
    78 \author[FOSSEE] {FOSSEE}
    79 
    79 
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    81 \date[] {11 January, 2010\\Day 1, Session 5}
    81 \date[] {28 January, 2010\\Day 1, Session 5}
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    83 
    83 
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    85 %\logo{\pgfuseimage{iitmlogo}}
    85 %\logo{\pgfuseimage{iitmlogo}}
    86 
    86 
   125 t = []
   125 t = []
   126 for line in open('pendulum.txt'):
   126 for line in open('pendulum.txt'):
   127     point = line.split()
   127     point = line.split()
   128     l.append(float(point[0]))
   128     l.append(float(point[0]))
   129     t.append(float(point[1]))
   129     t.append(float(point[1]))
   130 tsq = []
   130 plot(l, t, '.')
   131 for time in t:
       
   132     tsq.append(time*time)
       
   133 plot(l, tsq, '.')
       
   134     \end{lstlisting}
   131     \end{lstlisting}
   135     \end{block}
   132     \end{block}
   136   \end{columns}
   133   \end{columns}
   137   \begin{block}{Problem Statement}
   134   \begin{block}{Problem Statement}
   138     Tweak above code to plot data in file `pos.txt'.
   135     Tweak above code to plot data in file `pos.txt'.