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, 23.06.2019 20:40
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
question
Computers and Technology, 24.06.2019 09:30
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
Which program can damage your computer?
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
You know the right answer?
The constant π is an irrational number with a value approximately 3.1415928 . . the precise value o...
Questions
question
Mathematics, 16.10.2020 16:01
question
Computers and Technology, 16.10.2020 16:01
question
Mathematics, 16.10.2020 16:01
question
Mathematics, 16.10.2020 16:01
question
Business, 16.10.2020 16:01
question
Mathematics, 16.10.2020 16:01
question
Biology, 16.10.2020 16:01
question
Chemistry, 16.10.2020 16:01
Questions on the website: 13722363