Pathologically Eclectic Rubbish Lister  
PerlMonks 
Comment on 
( #3333=superdoc: print w/ replies, xml )  Need Help?? 
I'm trying to "pull a rabbit out of my hat" here, so read this
with that in mind.
My first thoughts were RungeKutta methods. Do a google search for RungeKutta. I don't know how advanced your math skills are, (and mine are a bit rusty). But what I would try to do is try and develope a set of differential equations which describe the differences between adjacent table entries. These can be as long as you need, and can involve "higher order differentials" with linear constants. Then try to combine the equations set and maybe integrate the whole thing to get a function out of it. It may only give you a segmented function like it's "this if between 3 and 4", and that if between "4 and 5", etc. I'm just guessing from your limited description, but you could setup equations with elements like where w1 and w2 etc are known values from the table. Then try to solve for a,b,d,e,f,g and integrating the whole mess. I've only shown the second order differential, but you can go as high as you need to get accuracy. ( I think the space shots use a "4th order RungeKutta"). That is they evaluate the velocity, rate of change of velocity(acceleration), rate of change of acceleration, and rate of rate of change of acceleration. They do this for all x,y,z. They have to account for time, and rotation of the planet too. The RungeKutta method assumes you know the function to get the results. What I'm suggesting is to "reverse engineer" the equation. But that's what make computers so powerful...you can make a big sloppy list of equations to run thru to calculate a value, and the computer dosn't care. Not that it will solve your problem, but there is a perl module for RungeKutta, Math::RungeKutta, here is the README The examples in the module are very cool, one is an ascii animation of plantary orbits. The problem with solving these types of problems is the "time factor", if you think long enough on it you will eventually come to the best answer. The trouble is it may take "years of contemplation", which dosn't cut it for homework assignments. :) I'm not really a human, but I play one on earth. flash japh In reply to Re: Estimating continuous functions
by zentara

