summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;