I can not understand what to replace in the formula in C++?

0 like 0 dislike
5 views
Given a positive integer n and a valid X. to Calculate the value of the expression:
cos(x)+coscos(x)+...coscos cos(x), where...coscos cos(x) replaced by n.
Task on a cycle of odds.
I don't understand how it is to be replaced. Please help you can,preferably with code,but only without vectors
by | 5 views

2 Answers

0 like 0 dislike
cos(x) * n
by
0 like 0 dislike
Something like that around

int n = 10; double x = math::Pi / 2.0; for (x = cos(x); n > 1; --n) { x = x + cos(x); } cout << x << endl;
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked Apr 1, 2019 by ReklatsMasters
0 like 0 dislike
6 answers
asked Mar 21, 2019 by uberSoldaten
0 like 0 dislike
5 answers
asked May 20, 2019 by Afafks
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
32,758 users