subject

Write a program that calculates pi using the Nilakantha Series. The program should accept a threshold from standard in indicating how close to pi one should calculate. The program should output for each term in the series: the result of the calculation of pi so far (fixed notation and 6 significant figures) and the different between the aproximation and actual pi (scientific notation and 2 significant figures). Once the difference is less than the threshold, cease the program.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:20
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
Using a conditional expression, write a statement that increments numusers if updatedirection is 1, otherwise decrements numusers. ex: if numusers is 8 and updatedirection is 1, numusers becomes 9; if updatedirection is 0, numusers becomes 7.
Answers: 1
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Which of the following processes applications across multiple computing devices? a. functional application b. distributed system c. workgroup information silo d. information silo
Answers: 3
You know the right answer?
Write a program that calculates pi using the Nilakantha Series. The program should accept a threshol...
Questions
question
Mathematics, 01.12.2020 01:40
question
Mathematics, 01.12.2020 01:40
question
Mathematics, 01.12.2020 01:40
question
Mathematics, 01.12.2020 01:40
question
Social Studies, 01.12.2020 01:40
question
Mathematics, 01.12.2020 01:50
question
Mathematics, 01.12.2020 01:50
Questions on the website: 13722361