Answer the question
In order to leave comments, you need to log in
How to restore a row from a function?
They gave me a task - to restore in a general form the formula of a power series calculated in these functions. (in the form in which you would write a formula for math analysis). But here I am not in the tooth with my foot. Thank you.
1
for (s=0, sn = x, n=1; fabs(sn) > eps; n++)
{ s += sn;
sn= - sn * x / n; }
2
for (s=0, sn = x, n=2; fabs(sn) > eps; n+=2)
{ s += sn;
sn= sn * x *x * (n-1) / (n+1); }
Answer the question
In order to leave comments, you need to log in
https://en.wikipedia.org/wiki/%D0%A0%D1%8F%D0%B4_%...
1. e^(-x)
2. arth(x)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question