subject

The constant π is an irrational number with a value approximately 3.1415928 . . the precise value of π is equal to this infinite sum: π = 4/1 – 4/3 + 4/5 – 4/7 + 4/9 – 4/11 + . . a good approximation can be obtained by computing the sum of the first few terms. using a while loop, write a function approxpi() that takes as input a float-value error and approximates constant π within error by computing the preceding sum, term by term, until the difference between the current sum and the previous sum (with one less term) is no greater than error. the function should return the new sum.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
The method of presentation refers to the planning process for the presentation. the information chosen for the presentation. how the presentation topic will be introduced. how the presentation will be delivered.
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
One subtask in the game is to roll the dice. explain why is roll the dice an abstraction.
Answers: 3
question
Computers and Technology, 22.06.2019 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
You know the right answer?
The constant π is an irrational number with a value approximately 3.1415928 . . the precise value o...
Questions
question
Mathematics, 17.11.2020 18:50
question
Business, 17.11.2020 18:50
question
English, 17.11.2020 18:50
question
Mathematics, 17.11.2020 18:50
Questions on the website: 13722363