title: Looping lists through a function with multiple variables
body: <p>so i have generated random values for a few of the variables in my function. These are in lists.</p>
  <p>I can't seem to figure out how to loop these lists through the function and output the t values?</p>
  <p>Thanks</p>
  <pre><code>def d_oscil(l,w,f,t):
      return np.exp(-l*t)*np.cos(w*t-f)
  
  t_list = np.arange(0 , 5 , 0.001)
  y_list = d_oscil(1,np.pi*2,1,t_list)
  
  plt.figure(num=0,dpi=150)
  plt.plot(t_list,np.exp(-t_list),color = 'red' , linestyle = '--' )
  plt.plot(t_list, y_list)
  plt.title( 'Graph of y = exp(-lt) cos(wt-f)' )
  # Draw l ines to mark 0 on the x and y axes
  plt.axhline( 0 , color= 'black' , linestyle = '-' )
  plt.axvline ( 0 , color = 'black' , linestyle = '-' )
  # Set the y-axis &amp; x-axis limits
  plt.ylim(-1.2 , 1.2)
  plt.xlim(0 , 5)
  plt.title( 'Damped Oscillator')
  plt.xlabel( 'Time')
  plt.ylabel( 'Displacement')
  plt.show()
  
  t_random_list = []
  for i in range(0,5):
      n = random.uniform(0,5)
      t_random_list.append(n)
  
  l_random_list = []
  for i in range(0,5):
      n = random.gauss(1,0.5)
      l_random_list.append(n)
  
  f_random_list = []
  for i in range(0,5):
      n = random.gauss(1,0.5)
      f_random_list.append(n)
  
  w = np.pi*2
  </code></pre>