From ab2f7eb70f4ef1d2ea5f13256991385427833e6d Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Sat, 9 Jul 2022 12:50:50 -0400 Subject: [PATCH] coupon collector --- eval.html | 5 +++++ 1 file changed, 5 insertions(+) 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 { +
 
-- 2.47.3