// // imperial_units.hpp // // Copyright (c) 2001 by Michael S. Kenniston. The most recent // version will be available at www.boost.org. Permission is granted // to use this code without restriction so long as this copyright // notice appears in all source files. // This code is provided as-is, with no warrantee of correctness. // Unless otherwise specified, the definitions of all units in this // file are from NIST Special Publication 811, found online at // http://physics.nist.gov/Document/sp811.pdf #ifndef _BFAFCE61_5FA7_11d5_B9D8_000000000000 #define _BFAFCE61_5FA7_11d5_B9D8_000000000000 #include "quantity_types.hpp" namespace quantities { inline quantity< length_d > nautical_mile() { return 1852 * meter(); } inline quantity< speed_d > knot() { return 1852 / 3600 * meter() / second(); } inline quantity< frequency_d > curie() { return 3.7e10 * becquerel(); } inline quantity< exposure_d > roentgen() { return 2.58e-4 * coulomb() / kilogram(); } inline quantity< dose_d > rad() { return 1e-2 * gray(); } inline quantity< dose_d > rem() { return 1e-2 * sievert(); } inline quantity< area_d > acre() { return 4.046873e+3 * meter() * meter(); } inline quantity< volume_d > acre_foot() { return 1.233489e+3 * meter() * meter() * meter(); } inline quantity< length_d > inch() { return 2.54 * centi() * meter(); } inline quantity< length_d > foot() { return 12 * inch(); } inline quantity< length_d > mile() { return 5280 * foot(); } } // namespace quantities #endif // _BFAFCE61_5FA7_11d5_B9D8_000000000000