From 2f4f077594e45c8b524f7249dc61c7a0fdfbd81c Mon Sep 17 00:00:00 2001 From: Horus Date: Fri, 16 Oct 2020 06:01:59 +0200 Subject: bugfix --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1303744..a6fdeb0 100644 --- a/index.html +++ b/index.html @@ -227,8 +227,8 @@ r = document.getElementById('r' + id).value.replace(",", "."); f = ( Math.PI * Math.pow((d/2),2) ); - fr = ( Math.PI * Math.pow((d-r)/2,2) ); - frpp = (( Math.PI * Math.pow((d)/2,2) ) - ( Math.PI * Math.pow((d-r)/2,2) )); + fr = ( Math.PI * Math.pow((d/2)-r,2) ); + frpp = (( Math.PI * Math.pow((d)/2,2) ) - ( Math.PI * Math.pow((d/2)-r,2) )); v = fr / frpp; fp = f / p; frp = fr / p; -- cgit v1.2.3