title: Integrating a list of values in Python
body: <p>I have a list of data, which represents acceleration. For simplicity, let's say this list is:</p>
  
  <pre><code>X = [1, 2, 3, 4, 5]
  </code></pre>
  
  <p>I want to integrate each value in this list twice (double integration) so I can retrieve information about location.</p>
  
  <p>Quick reminder: position, velocity, and acceleration are related. You can find acceleration by taking the derivative twice. Or, you can take the integral twice if you start with acceleration.</p>
  
  <p>I cannot really change the data I am working with. I have floating point values stored in a list coming from my accelerometer. I also understand that usually, integration requires a function to be defined, typically with a variable that can be integrated over an interval.</p>
  
  <p>I have tried using the library:</p>
  
  <pre><code>import scipy.integrate as integrate 
  </code></pre>
  
  <p>and have attempted using the <code>.quad</code> method, but I am yielding errors.</p>
  
  <p>I would love any tips, ideas, or links to resources that could help.</p>
  
  <p><a href="https://github.com/andrejandre/Accelerometer-Algorithms/blob/master/FirstAlgorithm.py" rel="nofollow noreferrer">Github repo</a></p>