diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-09-25 11:03:52 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-09-25 11:03:52 -0400 |
| commit | 0e9a7e9508a5c7c0107aa2475b7e6770e25857c5 (patch) | |
| tree | cda4d5136334883f322838cd0d84554d59f99063 /const.go | |
| parent | f4996428ffd1868c991539412e98bd24f80012a4 (diff) | |
| download | pfc-0e9a7e9508a5c7c0107aa2475b7e6770e25857c5.zip | |
vacuum permettivity constantv1.4.0
Diffstat (limited to 'const.go')
| -rw-r--r-- | const.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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} } |