BhariD has asked for the wisdom of the Perl Monks concerning the following question:

Is there a module in perl to plot line graphs and to compute the exponential equation(y=ax^n) for each line?

I have a 2d array (numeric values) of almost 40,000 size. This array can be plotted on a 2D graph such that it ends up as 600 lines on the x-y plot. The lines follow an exponential decay pattern. I would like to get the exponential equation for each line which can tell me the shape of the graph and which I can later use to make other interpretations.

What I am looking for is to automate the process of plotting line graphs for bunch of data I have and to automatically compute the exponential function for each line which can be output as a table for each x-y pair? is there a module in perl to do this?

would appreciate any help!

  • Comment on module to make line graph and to get exponential equation for each line?

Replies are listed 'Best First'.
Re: module to make line graph and to get exponential equation for each line?
by snape (Pilgrim) on Oct 27, 2010 at 06:27 UTC
Re: module to make line graph and to get exponential equation for each line?
by aquarium (Curate) on Oct 27, 2010 at 03:04 UTC
    what visually looks like an "exponential equation" is in fact overlapping discrete lines and intersecting points. if you just leave the intersecting points and connect them with a line you will see that they don't exactly make a neat "exponential equation" graph but discrete line sections. Therefore there's so automatic program to turn the bunch of lines into an equation where the lines intersect. You could possibly use logic/proof (math) theory application to derive the equation where the lines get closer and closer together, but nothing automatic afaik. Each line is itself a simple gradient equation and has no (automatic) relationship to another line with a steeper gradient.
    the hardest line to type correctly is: stty erase ^H