Question: computer science Dev C + + program 3 ( 3 ) For random variables x n between 0 and 1 , when you continuously generate

computer science
Dev C++ program
3(3) For random variables xn between 0 and 1, when you continuously generate independent uniformly distributed random variables x1,x2,x3,dots until their total sum exceeds 1 for the first time, the expected number of random variables required is Euler's number (e=2.718281dots. . Design a program that allows the user to input the number of rounds to calculate the e
1nixni>1 and 1ni-1xni-11atith round
e=i=1NniN
Results look like this
\table[[\table[[Please enter the number of round],[10]],\table[[Please enter the number of round],[100]]],[The estimation of e is 3.4,The estimation of e is 2.63],[\table[[Please enter the number of round],[1000]],\table[[Please enter the number of round],[30000]]],[The estimation of e,The estimation of e is 2.71727]]
 computer science Dev C++ program 3(3) For random variables xn between

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!