From 0e9a7e9508a5c7c0107aa2475b7e6770e25857c5 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 25 Sep 2025 11:03:52 -0400 Subject: vacuum permettivity constant --- const.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'const.go') diff --git a/const.go b/const.go index 3808e82..0aa5a37 100644 --- a/const.go +++ b/const.go @@ -2,12 +2,19 @@ package main import "math" +const ( + // Vacuum permettivity [C²/(N·m²)] + e0 = 8.8541878188e-12 +) + func parseConstant(s string) (float64, error) { switch s { case "pi": return math.Pi, nil case "e": return math.E, nil + case "e0": + return e0, nil } return 0, InvalidConstantErr{s} } -- cgit v1.2.3