cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
C language
C language
Dec 20, 2012 at 4:23pm UTC
fanatikos
(13)
this is my question: how to make function which must calculate and return the sum of "m" members of this type: 1/(1*3)-1/(3*5)+1/(5*7)-...+-1/((2*m-1)*(2*m+1)). argument of the function is value"m"..... please help
Dec 20, 2012 at 4:29pm UTC
vlad from moscow
(6539)
You may start from the function declaration:
double seria( unsigned m );
:)
Last edited on
Dec 20, 2012 at 4:31pm UTC
Dec 20, 2012 at 4:33pm UTC
Awais Tahir
(44)
double Fun( unsigned m );
{
double sum=1/(1*3)-1/(3*5)+1/(5*7)-...+-1/((2*m-1)*(2*m+1));
return sum;
}
Topic archived. No new replies allowed.