1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
|
#include <iostream>
using namespace std;
int main() {
double x=1,w,y,f;
w=(x-1)*(x-1);
y=((x-1)/(x+1))+w;
f=1+x+((x*x)/(double)2)+((x*x*x)/((double)6))+((x*x*x*x)/((double)24));
cout << w << endl;
cout << y << endl;
cout << f << endl;
} |