Calculating area

View: New views
3 Messages — Rating Filter:   Alert me  

Calculating area

by horatiu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can I calculate with gnuplot the area under a graph. In MS Excel I add the results of (x value) * (y value ). Can I do something like that with gnuplot or there are other tools for calculating the area under a graph?
Thanx

Re: Calculating area

by Hans-Bernhard Bröker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

horatiu wrote:
> Can I calculate with gnuplot the area under a graph.

Depends on the graph. ;-p

If it's a function plot, have a look at the 'bivariat.dem' example
script that came with the program.

 > In MS Excel I add the
> results of (x value) * (y value ).

... I hope you don't, because that is *not* going to give you the area
under the graph.




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Calculating area

by warpino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Of course that's not going to give the area. But I'm interested in knowing if there's a way as well.

In excel I do a trapezoidal integration sum(i) ((x(i+1)-x(i))*(y(i+1)+y(i))/2) . How can I do the same wiht gnuplot on a data set?

Thanks,

w.

Hans-Bernhard Bröker wrote:
horatiu wrote:
> Can I calculate with gnuplot the area under a graph.

Depends on the graph. ;-p

If it's a function plot, have a look at the 'bivariat.dem' example
script that came with the program.

 > In MS Excel I add the
> results of (x value) * (y value ).

... I hope you don't, because that is *not* going to give you the area
under the graph.




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info