| [ QuizWit ] in KIDS 글 쓴 이(By): iLUSiON (화려한집념) 날 짜 (Date): 2003년 10월 6일 월요일 오전 06시 29분 24초 제 목(Title): Re: estimating the digits of e. oh.... i am not sure what your code is supposed to mean. :( but i can guess what you aretrying to do. i haven't thought about this way. hehe..... stir 100 jum. hehehe... it seems like the following. generate x unif(1,e) , y unif(0,e) where the initial estimate is e=5. now note that the area under 1/x between (1,e) is e(e-1)P , where P is the probability of xy<1. with initial e=5, e(e-1)P mus not equal to 1. so we change e a little bit and do monte-carlo simulation. cool enough? one of my best student came one day and asked if his solutation was correct. obviously his solutation was correct but it seems his solution was not elegant. anyway what is the source of your solution. since you mentioned a textbook. i would like to take a look at it myself. kiki..... iLUSiON whitepolarcow@hotmail.com |