From 255b27afcd102cba34ec2ac7e3636fe5cdc7db59 Mon Sep 17 00:00:00 2001 From: JP Stringham Date: Wed, 21 Jan 2026 12:14:19 -0500 Subject: [PATCH] Add capacitance calc to html --- .gitignore | 2 ++ tests/draw.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..d74d08d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +.DS_Store + /target diff --git a/tests/draw.html b/tests/draw.html index 48e9f87..e7013e4 100644 --- a/tests/draw.html +++ b/tests/draw.html @@ -110,7 +110,8 @@ } - console.log() + let cap = -0.5 / (22000 * Math.log(min/max)); + console.log(`Calculated capacitance: ${cap}`); } function GetYForData(val) {