#include<bits/stdc++.h>
using namespace std;
int main()
{
double i;
double k;
for(i=0.000;i-2.000<=0.00000001;i+=0.001)
{
k=;
double sum=+(-i)/(**);
while(k-<)
{
sum+=(-i)/(k*(k+i)*(k+));
k=k+;
}
printf("%5.3lf %16.12lf\n",i,sum);
}
return ;
}
2023-10-13 16:01:58
#include<bits/stdc++.h>
using namespace std;
int main()
{
double i;
double k;
for(i=0.000;i-2.000<=0.00000001;i+=0.001)
{
k=;
double sum=+(-i)/(**);
while(k-<)
{
sum+=(-i)/(k*(k+i)*(k+));
k=k+;
}
printf("%5.3lf %16.12lf\n",i,sum);
}
return ;
}