필터 지우기
필터 지우기

how to solve this data generating random number problem

조회 수: 1 (최근 30일)
waqas muhammad
waqas muhammad 2019년 10월 17일
편집: waqas muhammad 2019년 10월 17일
Hello everyone.
I need some help in my coe while i have some problem when i do use monte carlo method. My code is in the attachment. All the code is perfect, only the last equation p=pt*2(asin(sqrt(R))) has a problem. i dont know how to get this step. in this equation i need to get pt by monte carlo method. and R is the random number [0,1]. in the above equation i need to fing pt by using the monte carlo method, and then find p. i don't understand how to find pt by using the monte carlo method. can anybody please help me?
Thanks
  댓글 수: 8
Walter Roberson
Walter Roberson 2019년 10월 17일
Okay so for any given value of R how do you derive a pt value?
waqas muhammad
waqas muhammad 2019년 10월 17일
편집: waqas muhammad 2019년 10월 17일
pt should be get by monte carlo method.... we dont need to check at the final value. we just need to do pt by monte carlo method, no other limits should be taken into consideration.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by