[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 338 KB, 1000x1000, image.jpg [View same] [iqdb] [saucenao] [google]
7217420 No.7217420 [Reply] [Original]

Hello /sci/, I need help.

I have the graph of a function, obtained after some analyses made with an oscilloscope. Now I need to integrate the graph, but I don't know how to express a function that represents the graph precisely enough.

Is there any PC programme that might do it for me?

Thank you /sci/.

Also, pic non-related.

>> No.7217428

>>7217420
You could use Tais method

http://care.diabetesjournals.org/content/17/2/152.abstract
>A Mathematical Model for the Determination of Total Area Under Glucose Tolerance and Other Metabolic Curves

>> No.7217436

You got it backwards.

Do you understand Riemann sums?
You don't need an analytic function to compute the integral, you only need a sample of data points (more points, more accurate result). You gain nothing by approximating by an elementary function first.
If f(n) and f(n+d) are two consecutive points, then the contribution to the integral from the inteveral of length d is
d·(f(n)+f(n+d))/2

en.wikipedia.org/wiki/Trapezoidal_rule

(As the oscilloscope data is probably supperposition of sine's, if you're super lazy you might find a fourier analysis package so that the numerical integration is reprsented by a look-up table)

>> No.7217441

>>7217428
hahahahaha

>> No.7217714
File: 26 KB, 238x231, 1429579387467.png [View same] [iqdb] [saucenao] [google]
7217714

>>7217420
Montecarlo method

random();
if random() < graph(unitary area) then integral++

you need some very basic programming skills, which you should have

you could also go full sperg like >>7217436, which you also should be able to

>oscilloscope
nvm all of above, just check machine manual and press buttan

or grab some capacitors and build an integration circuit

>> No.7217743

>>7217714
>you could also go full sperg like >>7217436,
errr that's the same I said, I read over and thought he suggested analytical