Hello, the task I have here is this: 
It is necessary to deduce: the value of the argument, the value of the function, the number of totalized members of the series and the calculation of the function by standard means with ++.
Actually I wrote the code, but how to calculate this arth? He simply does not consider him to me ... Please tell me.
#include <iostream> #include <math.h> using namespace std; int main() { const int max = 500; double Xstart, Xend, dX, sum, e, element, x; int c; cin >> Xstart >> Xend >> dX >> e; for ( x = Xstart; (Xend - x)>-0.00001; x += dX) { c = 0; element = 1; sum = 0; for (int n = 0; fabs(element)>e && n <= max; n++) { element = 1 / ((2*n+1) * pow(x, (2*n+1))); sum += element; c++; } if (c < max) cout << x << " " << round(sum * 10000) / 10000 << " " << c << " " << round(atanh(x) * 10000)/10000 << endl; } return 0; }