Sonoman writes:

Is there a class or function that I could use to integrate? By

integrating , I mean calculus integration. I need to get data from a

sensor that gives me the acceleration of an object. In order to find the

displacement for this object I need to integrate its acceleration twice.

How can I achieve this with C++? Please advise.

I would be inclined to write my own routine using something such as Simpson

numerical integration. You can probably find something already written but

it is probably just as fast to write it. Use 'snippets' in a Google search

if you want to pursue the pre-written approach, that will often limit the

results to source code.