summaryrefslogtreecommitdiff
path: root/em.awk
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2026-04-10 23:46:12 -0700
committerwukong <wukong@longaeva>2026-04-10 23:46:12 -0700
commit4c4eb1bd8f003b3b57707badd2dd089ed193a896 (patch)
tree15b62907fffd70c46a9b4369df93ab33c6aa88ac /em.awk
parente7d1781578e846a7b1d634cd43c8fab00a67b883 (diff)
renamed fir window generators;
minor edits to whitespace and comments for more consistent style;
Diffstat (limited to '')
-rw-r--r--em.awk7
1 files changed, 6 insertions, 1 deletions
diff --git a/em.awk b/em.awk
index c956fa1..2cc6a74 100644
--- a/em.awk
+++ b/em.awk
@@ -1,9 +1,13 @@
#!/usr/bin/awk -f
+### em.awk
+# list of physical EM constants
+
+
BEGIN {
ARGV[1] ? OFMT = "%." ARGV[1] "g" : OFMT = "%.12g"
- ### constants
+ # constants
pi = 4.0*atan2(1,1) # rad
c0 = 299792458E0 # m/s, exact
mu0 = (4.0E-7)*pi # H/m = (T*m)/A = N/(A^2) = (kg*m)/(A*s)
@@ -11,3 +15,4 @@ BEGIN {
print pi, c0, mu0, epsilon0
}
+