This question sounds much like homework to me, thus I will only give you hints at what to look for:
- Define what polynomial division is.
- Every Polynom can be written in two standard forms (at least if you also allow imaginary numbers, which won't be necessary for our case). Identify those two forms.
- Are those two forms of a given polynomial unique? Why? Why not?
- You are looking for a f(X) which satisfies f(Xi) = Yi for all i between 1 and the length of your data column.
- Start with the easy cases of i=0, i=1 and i=2.
- Can you extend a solution for i=1 to i=2?
- Can you extend a solution for i=n to i=n+1?
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The
$d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider
($c = $d->accept())->get_request(); $c->send_response( new #in the
HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web