Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/units Update radioactivity-related units from http:/...



details:   https://anonhg.NetBSD.org/src/rev/e24583def1c3
branches:  trunk
changeset: 763625:e24583def1c3
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Mar 28 00:08:47 2011 +0000

description:
Update radioactivity-related units from http://physics.nist.gov/cuu/Units/.
The prior definition of sievert was, as far as I can tell, entirely wrong.

Caution: while "gray" and "sievert" have the same dimensionality,
they're not interchangeable -- you need to multiply by a fudge factor
that varies depending on the type of radiation and the tissue it's
affecting. (Dimensional analysis is often not a substitute for knowing
what you're doing.)

It would be nice if units had a way to warn users when they're trying
to do something that doesn't make sense, since there are lots of ways
to do so, but it doesn't, and it wouldn't be easy to arrange in the
general case.

diffstat:

 usr.bin/units/units.lib |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (72 lines):

diff -r b717e19b3b4b -r e24583def1c3 usr.bin/units/units.lib
--- a/usr.bin/units/units.lib   Sun Mar 27 22:55:07 2011 +0000
+++ b/usr.bin/units/units.lib   Mon Mar 28 00:08:47 2011 +0000
@@ -1,4 +1,4 @@
-/      $NetBSD: units.lib,v 1.14 2007/02/15 22:37:27 dogcow Exp $
+/      $NetBSD: units.lib,v 1.15 2011/03/28 00:08:47 dholland Exp $
 
 / primitive units
 
@@ -378,6 +378,7 @@
 btu                    britishthermalunit
 refrigeration          12000 btu/ton-hour
 buck                   dollar
+Ci                     curie
 cable                  720 ft
 caliber                        1e-2 in
 calorie                        cal
@@ -430,6 +431,7 @@
 franklin               3.33564e-10 coul
 frigorie               kilocal
 furlong                        220 yd
+Gy                     gray
 galileo                        1e-2 m/sec2
 gamma                  1e-9 weber/m2
 gauss                  1e-4 weber/m2
@@ -437,6 +439,7 @@
 geographicalmile       1852 m
 gilbert                        7.95775e-1 amp
 gill                   1|4 pt
+gray                   joule/kg
 gross                  144
 gunterschain           22 yd
 hand                   4 in
@@ -518,17 +521,21 @@
 quartersection         1|4 mi2
 quintal                        100 kg
 quire                  25
+R                      roentgen
 rackunit               1.75 in
 rad                    100 erg/gm
 ream                   500
 registerton            100 ft3
+rem                    1e-2 sievert
 rhe                    10 m2/nt-sec
-rontgen                        2.58e-4 curie/kg
+roentgen               2.58e-4 coulomb/kg
+rontgen                        roentgen
 rood                   1.21e+3 yd
 rope                   20 ft
 RU                     rackunit
 rutherford             1e+6 /sec
 rydberg                        1.36054e+1 ev
+Sv                     sievert
 sabin                  1 ft2
 sack                   3 bu
 score                  20
@@ -539,6 +546,7 @@
 shorthundredweight     100 lb
 shortquarter           25 lb
 siemens                        /ohm
+sievert                        joule/kg
 sigma                  microsec
 skein                  120 yd
 skot                   1e-3 apostilb
@@ -627,7 +635,6 @@
 frenchfoot             16|15 ft
 frenchfeet             frenchfoot
 toise                  6 frenchfeet
-sievert                        8.4 rontgen
 candle                 1.02 candela
 militarypace           2.5 feet
 metre                  meter



Home | Main Index | Thread Index | Old Index