#include<iostream>
#include <vector>
#include<cmath>
#include"head.h"
using namespace std;
int main(int argc, char *argv[])
{
VECTOR x, y, x0, s;
for (int i = 0; i<11; i++)
{
x.push_back(-5+i);
y.push_back(1/(1+x[i]*x[i]));
}
for (int i = 0; i<100; i++)
{
x0.push_back(-5+0.1*i);
}
s = Spline(x, y, x0, 0, 0);
for (int i = 0; i<100; i++)
{
cout<<"s = "<<s[i]<<endl;
}
return 0;
}