#include "stdafx.h"#include #include "math.h"#include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ int i, x; float f, y, n, r, z, g; float q; cin >> x >> i; y = 0; r = x; f = 0; z = 1; n = 0; q = x; while(n<=i){ y=z*r/(2*n+1); f=f+y; r=r*x*x; n=n+1; z = z*(-1); /*cout << y << endl;*/} g = (3.1415926 / 2) - f; cout << g << endl; cout << (atan(-x)+(3.1415926/2));system("pause");return 0;}