연금복권520의 기대 값(expected value): 725.56원
In Racket:
> (exact->inexact (+ (* 5000000 12 20 1/3150000) (* 100000000 1/1575000) (* 10000000 1/900000) (* 1000000 1/100000) (* 20000 1/1000) (* 2000 1/50) (* 1000 1/5)))
725.5555555555555
In Parenjs:
(+ (* 5000000 12 20 1/3150000) (* 100000000 1/1575000) (* 10000000 1/900000) (* 1000000 1/100000) (* 20000 1/1000) (* 2000 1/50) (* 1000 1/5))
725.5555555555555
In JavaScript:
5000000*12*20/3150000 + 100000000/1575000 + 10000000/900000 + 1000000/100000 + 20000/1000 + 2000/50 + 1000/5
725.5555555555555
In Common Lisp:
(float (+
(* 5000000 12 20 1/3150000)
(* 100000000 1/1575000)
(* 10000000 1/900000)
(* 1000000 1/100000)
(* 20000 1/1000)
(* 2000 1/50)
(* 1000 1/5)))
725.55554
'Etc' 카테고리의 다른 글
준중형 아반떼, 중형차랑 비교해볼까 (0) | 2013.07.30 |
---|---|
아반떼 MD 크루즈 컨트롤 설명서 (0) | 2013.07.14 |
TOEFL PBT (0) | 2013.05.14 |
ABLOGTOWATCH: Internet's Most Popular Watch Blog, with Watch Reviews, Watch Industry Information and Trusted Watch Media (0) | 2012.11.15 |
Seiko Astron GPS Solar Watch Hands-On (0) | 2012.10.20 |