Home > Back-end >  New introduction to the C language of sample solution
New introduction to the C language of sample solution

Time:06-09

According to the summation formula haunters=+/+/5 -/+/+ 4/+ 4... ^ k * 4 +)/(2 * k + 1) calculating the value of PI, request the formula of the absolute value of the last item on the 4/(2 * kThe input description
A double precision real type data e
Output description
The output of 6 decimal places the results
The sample input
0.0001
Sample output
PI=3. 141543

CodePudding user response:

While (x> E)
{sum +=... }

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related