#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main()
{
    double b = 1, a = 0.1, eps = 0.00000001;

    for(double x = a; x <= b; x += (b-a)/10)
    {
        double t = 1, s = 0;
        for(int n = 0; abs(t) > eps; ++n)
            s += t *= -2*x*x/(2*n+1)/(n+1);
        double c = cos(x);

        cout << "x: " << setw(15) << x;
        cout << "       y(x): " << setw(15) << 2*(c*c-1);
        cout << "       s(x): " << s << endl;
    }
}
