summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus2020-10-16 06:01:59 +0200
committerHorus2020-10-16 06:01:59 +0200
commit2f4f077594e45c8b524f7249dc61c7a0fdfbd81c (patch)
tree31e535d388a3a714b0087f6902c87f5b52d8b615
parente54e61c1c1a6db96c05cbfcc082f045a9ae3555d (diff)
downloadpizza-2f4f077594e45c8b524f7249dc61c7a0fdfbd81c.tar.gz
bugfix
-rw-r--r--index.html4
1 files 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;