I would stick with the code you already have. The only change I would make would be to remove the divide by 1 at the end. It doesn't do anything other than waste CPU cycles.
In Zeq1(), cone is an uninitialized local variable. You may also want to double check your equation for Voutabs.
EDIT: Here's a plot of the data after making the fixes to Zeq1: gnuplot.jpg
clock() measures execution time. I suspect that it works on a per-thread basis, so your code would only be measuring the execution time of the main thread. If all you main thread does is spawn other threads and wait for them to complete, then its actual execution time may not be long enough to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.