From: Zachary Vance Date: Sat, 9 Jul 2022 16:50:50 +0000 (-0400) Subject: coupon collector X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=ab2f7eb70f4ef1d2ea5f13256991385427833e6d;p=za3k.git coupon collector --- diff --git a/eval.html b/eval.html index 422d28a..f339867 100644 --- a/eval.html +++ b/eval.html @@ -140,6 +140,10 @@ surface_area_of_sphere = function(r) { surface_area_of_cylinder = function(r, h) { return 2 * Math.PI * r * (r + h); } +coupon_collector = function(coupons) { + // + return coupons*Math.log(coupons) + 0.577215*coupon + 0.5; +} @@ -203,6 +207,7 @@ label { +