summaryrefslogtreecommitdiff
path: root/em.awk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--em.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/em.awk b/em.awk
index 2cc6a74..be84054 100644
--- a/em.awk
+++ b/em.awk
@@ -8,7 +8,7 @@ BEGIN {
ARGV[1] ? OFMT = "%." ARGV[1] "g" : OFMT = "%.12g"
# constants
- pi = 4.0*atan2(1,1) # rad
+ pi = 4.0*atan2(1.0,1.0) # rad
c0 = 299792458E0 # m/s, exact
mu0 = (4.0E-7)*pi # H/m = (T*m)/A = N/(A^2) = (kg*m)/(A*s)
epsilon0 = (mu0*c0^2)^-1 # F/m = C/(V*m) = (A^2*s^4)/(kg*m^3)