const double Ohm = Volt / Ampere; const double Ohms = Ohm; //电导 const double mho = 1.0 /欧姆; const double mhos = mho; const double Siemens = mho; const double S = Siemens; //其他费用 const double Coulomb =安培*秒; const double Coulombs = Coulomb; const double C =库仑; const double Franklin = 3.33564e-10 * Coulombs; const double Franklins = Franklin; //电容量 const double法拉=库仑/伏; const double法拉=法拉; const double F =法拉; //磁通量 const double Weber = Volt *秒; const double Webers = Weber; const double Wb = Weber; const double Maxwell = Weber / 100000000.0; const double Maxwells = Maxwell; const double M = Maxwell; //磁场B const double特斯拉=韦伯/(米*米); const double Teslas =特斯拉; const double T =特斯拉; const double Gauss =特斯拉/ 10000.0; const double gamma =特斯拉/ 1000000000.0; //磁性字段H const double Oerstedt = 79.57747 *安培/米; const double Oerstedts = Oerstedt; const double Oe = Oerstedt; //磁感应力 const double亨利=韦伯/安培; const double亨利=亨利; const double H = Henry; const double milliHenry = Henry / 1000.0; const double milliHenrys = milliHenry; const double mH = milliHenry; //温度 const double Kelvin = 1.0; const double Kelvins =开尔文; const double K = Kelvin; //发光强度 const double candela = 1.0; const double candelas = candela; const double cd = candela; const double apostilb = candelas / meter / meter; const double apostilbs = apostilb; const double nit = apostilb; const double nits = nit; const double skot = apostilb / 1000.0; const double skots = skot; const double stilb = 10000.0 * apostilbs; const double stilbs = stilb; const double Blondel = apostilb / pi; const double Blondels = Blondel; const double Lambert = 10000.0 * Blondels; const double Lamberts = Lambert ; //光通量 const double lumen = candela * steradian; const double lumens = lumen; const double lm = lumen; //光照强度 const double lux =流明/遇见呃/米; const double luxes = lux; const double luces = lux; const double lx = lux; const double nox = lux / 1000.0; const double phot =流明/厘米/厘米; const double phots = phot; 名称空间等价物{ const double lux = unit :: lux / pi; const double luxes = lux; const double luces = lux; const double lx = lux; const double lumen = unit :: lumen / pi; const double lumens = lumen; const double lm = lumen; const double phot = apostilb / pi; const double phots = phot; } //加速 const double Galileo =厘米/秒/秒; const double Galileos = Galileo; //海平面标准gavitational加速度 const double gravity = 9.80665 *米/秒/秒; //质量 const double kilohyl =千克*重力*秒*秒/米; const double kilohyls = kilohyl; const double hyl = kilohyl / 1000.0; const double hyls = hyl; //英文单位 //长度 const double inch = 0.0254 *米; const double inches = inch; const double in = inch; const double mil = inch / 1000.0; const double mils = mil; const double point = inch / 72.27; const double points = point; const double pt = point ; const double bottommeasure = inch / 40.0; const double bottommeasures = bottommeasure; const double line = inch / 12.0; const double lines = line; const double pica = 12.0 * points; const double picas = pica; const double barleycorn = inch / 3.0; const double barleycorns = barleycorn; const double finger = 7.0 * inches / 8.0; const double fingers = finger; const double palm = 3.0 * inches; const double palms = palm; const double hand = 4.0 * inches; const double hands = hand; const double link = 7.92 * inches; const double links = link; const double li = link; const double span = 9.0 * inches; const double spans = span; const double foot = 12.0 * inches; const double feet = foot; const double ft = foot; const double cubit = 18.0 * inches; const double cubits = cubit; const double yard = 3.0 * feet; const double yards =院子里; const double yd = yard; const double nail = yard / 16.0; const double nails = nail; const double ell = 45.0 * inches; const double ells = ell; const double pace = 5.0 * feet; const double paces = pa ce; const double fathom = 6.0 * feet; const double fathoms = fathom; const double fm = fathom; const double rod = 198.0 * inches; const double rods = rod; const double rd = rod; const double极=杆; const双极=极点; const double p =极点; const double perch = rod; const double perches = perch; const double rope = 20.0 * feet; const double ropes = rope; const double bolt = 40.0 *码; const double bolts = bolt; const double chain = 4.0 * rods; const double chains = chain; const double ch = chain; 命名空间Gunters { const double chain = unit :: chain; const double chains = chain; } 命名空间工程师{ const double link = foot; const double links = link; con st double chain = 100.0 * feet; const double chains = chain; } const double skein = 120 *码; const double skeins = skein; const double furlong = 220 *码; const double furlongs = furlong; const双主轴= 14400 *码; const双主轴=主轴; 命名空间US { const double cable_length = 120.0 * fathoms; const double cable_lengths = cable_length; } namespace英国{ const double cable_length = 100.0 * fathoms; const double cable_lengths = cable_length; } 命名空间法规{ const double mile = 5280.0 * feet; const double miles = mile; const double mi = mile; const double league = 3.0 * miles; const double leagues = league; } namespace nautical { const double mile = 1852 *米; const double miles = mile; const double nm = mile; const double league = 3.0 * miles; const double leagues = league; } namespace marine = nautical; namespace geodetic { const double foot =(1200.0 / 3937.0)*米; const double feet = foot; const double ft = foot; } 命名空间地理位置{ const double mile = nautical :: mile; const double miles = mile; const double mi =英里; } const double parasang = 3.5 * statute :: miles; const double parasangs = parasang; const double arpentcan = 27.52 * statute :: miles; const double arpentcans = arpentcan; const double arpentlin = 191.835 * feet; const double arpentlins = arpentlin; const double astronomical_unit = 1.49597871e11 *米; const double astronomical_units = astr onomical_unit; const double AU = astronomical_unit; const double lightyear = 9.4605e15 *米; const double lightyears = lightyear; const double ly = lightyear; const double parsec = AU * radians / arc :: second; const double parsecs = parsec; const double pc = parsec; // area const double barn = 1.0e-28 *米*米; const double barns = barn; const double b = barn; const double circular_inch = 0.25 * pi * inch * inch; const double circular_inches = circular_inch; const double circular_mil = 0.25 * pi * mil * mil; const double circular_mils = circular_mil; const double sabin =脚*脚; const double sabins = sabin; const double square = 100.0 * sabin; const double squares = square; const double = 100.0 *米*米; const double ares = are; const double a = are; const double rood = 40.0 * rod * rod; const double roods = rood; const double ro = rood; const double acre = 4.0 * roods; const double acres = acre; const double section = statute :: mile * statute :: mile; const double sections = section; const double homestead = section / 4.0; const double homesteads = homestead; const double township = 36.0 * sections; const double townships = towns; // volume const double minim = 6.161152e-8 *(m * m * m); const double minims = minim; const double drop = 0.03 * cc ; const double drops = drop; const double teaspoon = 4.928922 * cc; const double teaspoons = teaspoon; const double tablepoon = 3.0 *茶匙; const double tablespoons = tablespoon; namespace US { namespace liq uid { const double dram = 60.0 * minims; const double drams = dram; const double dr = dram; const double盎司= 8.0 * drams; const double盎司=盎司; const double oz =盎司; const double gill = 4.0 *盎司; const double gills = gill; const double gl = gill; const double pint = 4.0 * gills; const double pints = pint; const double pt = pint; const double quart = 2.0 * pints; const double夸脱=夸脱; const double qt =夸脱; const double magnum = 2.0 *夸脱; const double magnums =马格南; const double gallon = 4.0 *夸脱; const double加仑=加仑; const double gal =加仑; } 名称空间干{ const double pint = 550.61047 * cc; const double pints = pint; const double pt =品脱; const double夸脱= 2.0 *品脱; const double夸脱=夸脱; const double qt = quart; } const double peck = 8.0 * dry :: quarts; const double pecks = peck; const double pk = peck; const double bushel = 4.0 * pecks; const double bushels = bushel; const double bu = bushel; const双桶= 31.5 *液体::加仑; const双桶=桶; const double bbl =桶; const double bl =桶; } namespace英国{ 命名空间流体{ const double drachm = 60.0 *微积分; const double drachms = drachm; const double dr = drachm; const double盎司= 8.0 * drachms; const double盎司=盎司; const double oz =盎司; const double gill = 5.0 *盎司; const double gills = gill; const double gi = gill; const double pint = 4.0 * gills; const double pints = pint; const double pt = pint; const double quart = 2.0 * pints; const double quarts = quart; const double qt = quart; const double gallon = 4.0 *夸脱; const double加仑=加仑; const double gal =加仑; } const double peck = 2.0 * fluid ::加仑; const double pecks = peck; const double pk = peck; const double bushel = 4.0 * pecks; const double bushels = bushel; const double bu = bushel; const double barrel = 36.0 * fluid :: gallons; const double barrels = barrel; const double bbl = barrel; const double bl =桶; } const double noggin = 2.0 * US :: liquid ::盎司; const double noggins = noggin; const doub le cup = 8.0 * US :: liquid ::盎司; const double cups = cup; const double fifth = US :: liquid :: gallon / 5.0; const double fives = 5th; const double jeroboam = 4.0 * Fifths; const double jeroboams = jeroboam; const double firkin = 9.0 * US :: liquid ::加仑; const double firkins = firkin; const double kilderkin = 18.0 * US :: liquid :: gallons ; const double kilderkins = kilderkin; const double strike = 2.0 * US :: bushels; const double strikes = strike; const double sack = 3.0 * US :: bushels; const double sacks = sack; const double coomb = 4.0 * US :: bushels; const double coombs = coomb; const double seam = 8.0 * US :: bushels; const double seams = seam; const double wey = 40.0 * US :: bushels; const double weys = wey; const double last = 80.0 * US :: bushels; const double lasts = last; const double register_ton = 100.0 *(ft * ft * ft); const double register_tons = register_ton; const double register_tn = register_ton; const double cord = 128.0 *(ft * ft * ft); const double cords = cord; const double cordfoot = cord; const double cordfeet = cordfoot; const double boardfoot = 144.0 * inch * inch * inch; const double boardfeet = boardfoot; const double timberfoot = foot * foot * foot; const double timberfeet = timberfoot; const double hogshead = 2.0 * US ::桶; const double hogsheads = hogshead; const double pipe = 4.0 * US :: barrels; const double pipes = pipe; const double tun = 8.0 * US :: barrels; const double tuns = tun; // mass const double grain = 0.06479891 *克; const double grain = grain; const doubl e gr = grain; const double pennyweight = 24.0 * grain; const double dwt = pennyweight; namespace apothecary {// weight const double scruple = 20.0 * grain; const double scruples = scruple; const double s = scruple; const double dram = 3.0 * scruples; const double drams = dram; const double dr = dram; const double盎司= 8.0 * drams; const double盎司=盎司; const double oz =盎司; const double pound = 12.0 *盎司; const double pounds = pound; const double lb = pound; } namespace troy = apothecary; namespace ap = apothecary; namespace t = apothecary; namespace avoirdupois {// weight const double pound = 7000.0 *谷物; const double磅=磅; const double lb = pound; const double盎司= pound / 16.0; const double盎司=盎司; const double oz =盎司; const double dram =盎司/ 16.0; const double drams = dram; const double dr = dram; } namespace avdp = avoirdupois; 命名空间av = avoirdupois; const double stone = 14.0 * avoirdupois ::磅; const double stones = stone; const double st = stone; namespace US {// short const double hundredweight = 100.0 * avoirdupois :: pounds; const double cwt = hundredweight; const double quarter = hundredweight / 4.0; const double quarters = quarter; const double qr = quarter; const double ton = 20.0 * hundredweight; const double tons = ton; const double tn = ton; const double deadweight = ton; } namespace英国{//很长 const double hundredweight = 112.0 * avoirdupois ::磅; const double cwt = hundredweight; const double quarter = hundredweight / 4.0; const double quarters =季度; const double qr = quarter; const double ton = 20.0 * hundredweight; const double tons = ton; const double tn = ton; } namespace英语=英国; 命名空间Imperial =英国; const double crith = 0.0906 *克; const double criths = crith; const double bag = 94.0 * avoirdupois ::磅; const double bags = bag; const double cental = 100.0 * avoirdupois ::磅; const double centals = cental; const double weymass = 252.0 * avoirdupois ::磅; //率 const double mgd = 1000000.0 * US :: liquid ::加仑/天; const double cfs = foot * foot * foot / second; const double minersinch = 1.5 * foot * foot * foot / minute; const double\t\tmpg\t\t= statute::miles/US::liquid::gallon; // speed const double\t\tmph\t\t= statute::miles/hour; const double\t\tknot\t\t= nautical::miles/hour; const double\t\tknots\t\t= knot; namespace admiralty { const double\t\tknot\t\t= 6980.0*feet/hour; const double\t\tknots\t\t= knot; } // force const double\t\tpoundal\t\t= avdp::pound*foot/(second*second); const double\t\tpoundals\t= poundal; const double\t\tpdl\t\t= poundal; const double\t\tlbf\t\t= avoirdupois::pound*gravity; // pressure const double\t\tpsi\t\t= lbf/(inch*inch); // energy const double\t\tcalorie\t\t= 4.1868*Joules; const double\t\tcalories\t= calorie; const double\t\tcal\t\t= calorie; const double\t\tkilocalorie\t= 1000.0*calories; const double\t\tkilocalories\t= kilocalorie; const double\t\tkcal\t\t= kilocalorie; $b$ b const double\t\tFrigorie\t= kilocalorie; const double\t\tFrigories\t= Frigorie; const double\t\tBtu\t\t= 1055.06*Joules; const double\t\ttherm\t\t= 10000.0*Btu; const double\t\ttherms\t\t= therm; const double\t\tthermie\t\t= 1000000.0*calories; const double\t\tthermies\t= thermie; // power const double\t\thorsepower\t= 735.49875*Watts; const double\t\tHP\t\t= horsepower; // electrical current const double\t\tGilbert\t\t= 0.795775*Amperes; const double\t\tGilberts\t= Gilbert; // temperature const double\t\tRankin\t\t= 1.8*Kelvins; const double\t\tRankins\t\t= Rankin; const double\t\tR\t\t= Rankin; // luminous intensity const double\t\tcandle\t\t= 1.02*candelas; const double\t\tcandles\t\t= candle; namespace Hefner { const double\t\tcandle\t\t= 0.9*unit::candles; const double\t\tcandles\t\t= candle; } // light intensity const double\t\tfoot_candle\t= lumens/foot/foot; const double\t\tfoot_candles\t= foot_candle; const double\t\tfc\t\t= foot_candle; const double\t\tfoot_Lambert\t= candelas/foot/foot/pi; const double\t\tfoot_Lamberts\t= foot_Lambert; namespace equivalent { const double\t\tfoot_candle\t= unit::foot_candle/pi; const double\t\tfoot_candles\t= foot_candle; const double\t\tfc\t\t= foot_candle; } } namespace units = unit; namespace constant { using namespace units; // speed of light const double\t\tc\t\t= 2.99792458e8*meters/second; // speed of sound const double\t\tMach\t\t= 331.46*meters/second; // Planck constant const double\t\th\t\t= 6.6260755e-34*Joule*seconds; const double\t\th_bar\t\t= h/(2.0*pi); // standard gavitational acceleration at sea level const double\t\tg\t\t= units::gravity; // electron charge const double\t\te\t\t= 1.60217733e-19*Coulombs; // elevtron Volt const double\t\teV\t\t= e*V; const double\t\tkeV\t\t= 1000.0*eV; const double\t\tMeV\t\t= 1000000.0*eV; const double\t\tGeV\t\t= 1000000000.0*eV; const double\t\tRydberg\t\t= 13.6054*eV; const double\t\tRydbergs\t= Rydberg; // electron mass const double\t\tm_e\t\t= 9.1093897e-31*kilograms; // proton mass const double\t\tm_P\t\t= 1.6726231e-27*kilograms; // deuteron mass const double\t\tm_D\t\t= 1875.61339*MeV/(c*c); // unified atomic mass unit const double\tatomic_mass_unit\t= 1.6605402e-27*kilograms; const double\tatomic_mass_units\t= atomic_mass_unit; const double\t\tamu\t\t= atomic_mass_unit; const double\t\tDalton\t\t= atomic_mass_unit; const double\t\tDaltons\t\t= Dalton; // permittivity of free space const double\t\tepsilon\t\t= 8.854187817e-12*Farads/meter; // permeability of free space const double\t\tmu\t\t= 12.566370614e-7*Newtons/(A*A); // fine-structure constant const double\t\talpha\t\t= 1.0/137.0359895; // classical electron radius const double\t\tr_e\t\t= 2.81794092e-15*meters; // electron Compton wavelength const double\t\tlambda_bar\t= 3.86159323e-13*meters; // Bohr radius const double\t\ta_0\t\t= 0.529177249e-10*meters; // wavelength of 1 eV/c particle const double\t\tlambda_1eV\t= 1.23984244e-6*meters; // Thomson cross section const double\t\tsigma_0\t\t= 0.66524616*barns; // Bohr magneton const double\t\tmu_B\t\t= 5.78838263e-11*MeV/Tesla; // nuclear magneton const double\t\tmu_N\t\t= 3.15245166e-14*MeV/Tesla; // electron cyclotron frequency/field con st double\t\tE_M_e\t\t= 1.75881962e11*C/kg*(rad/(s*T)); // proton cyclotron frequency/field const double\t\tE_M_P\t\t= 9.5788309e7*C/kg*(rad/(s*T)); // gravitational constant const double\t\tG\t\t= 6.67259e-11*m*m*m/(kg*s*s); // Avogadro’’s constant const double\t\tN_A\t\t= 6.0221367e23; // Boltzmann constant const double\t\tK_B\t\t= 1.380658e-23*Joules/Kelvin; // molar volume, ideal gas at standard temperature and pressure const double\t\tV_molar\t\t= 2.897756e-3*meter*Kelvins; // Stefan-Boltzmann constant const double\t\tsigma_SB\t= 5.67051e-8*W/(m*m*K*K*K*K); // } namespace constants = constant; }x = 13 meters3.1536e+07 = (365.0*days)/second3.15569e+07 = seconds/year1.63193 = (factor -pi*10000000.0)/days0.00446807 = (factor -pi*10000000.0)/factor namespace physical {namespace unit {// conversion factorconst doubleradian= 1.0;const doubleradians= radian;const doublerad= radian;const doublesteradian= 1.0;const doublesteradians= steradian;const doublesr= steradian;const doubledollar= 1.0;const doubledollars= dollar;const doublecent= dollar/100.0;const doublecents= cent;const doubledozen= 12.0;const doubledoz= dozen;const doubledz= dozen;namespace bakers {const doubledozen= 13.0;const doubledoz= dozen;const doubledz= dozen;}const doublegross= 12.0*dozen;const doublegro= gross;const doublequire= 25.0;const doublequires= quire;const doubleream= 500.0;const doublereams= ream;const doublepercent= 1.0/100.0;const doubleproof= percent/2.0;const doublekarat= 1.0/24.0;const doublekarats= karat;const doublemole= 6.0221367e+23;const doublemoles= mole;const doublemol= mole;const doublepi= 3.14159265358979323846*radians;namespace arc {const doubledegree= pi/180.0;const doubledegrees= degree;const doubleminute= degree/60.0;const doubleminutes= minute;const doublemin= minute;const doublesecond= minute/60.0;const doubleseconds= second;const doublesec= second;const doublegrade= 0.9*degrees;const doublegrades= grade;namespace centesimal {const doubleminute= grade/100.0;const doubleminutes= minute;const doublemin= minute;const doublesecond= grade/10000.0;const doubleseconds= second;const doublesec= second;}} // SI units (mks)// lengthconst doublemeter= 1.0;const doublemeters= meter;const doublem= meter;const doublekilometer= 1000.0*meters;const doublekilometers= kilometer;const doublekm= kilometer;const doubledecimeter= meters/10.0;const doubledecimeters= decimeter;const doubledm= decimeter;const doublecentimeter= meters/100.0;const doublecentimeters= centimeter;const doublecm= centimeter;const doublemillimeter= meters/1000.0;const doublemillimeters= millimeter;const doublemm= millimeter;const doublemicron= meter/1000000.0;const doublemicrons= micron;const doublenanometer= meter/1000000000.0;const doublenanometers= nanometer;const doublenm= nanometer;const doubledecinanometer= meter/10000000000.0;const doubledecinanometers= decinanometer;const doubleAngstrom= decinanometer;const doubleAngstroms= Angstrom;const doubleXunit= 1.00202e-13*meters;const doubleXunits= Xunit;const doubleFermi= meter/1000000000000000.0;const doubleFermis= Fermi;// areaconst doublehectare= 10000.0*meter*meter;const doublehectares= hectare;const doubleha= hectare;// volumeconst doublestere= meter*meter*meter;const doublesteres= stere;const doubleliter= stere/1000.0;const doubleliters= liter;const doublel= liter;const doublemilliliter= stere/1000000.0;const doublemilliliters= milliliter;const doubleml= milliliter;const doublecc= milliliter;namespace displacement {const doubleton= stere;const doubletons= ton;const doublet= ton;}// massconst doublekilogram= 1.0;const doublekilograms= kilogram;const doublekg= kilogram;const doublequintal= 100.0*kilograms;const doublequintals= quintal;const doubledoppelzentner= quintal;const doubledoppelzentners= doppelzentner;const doublegram= kilograms/1000.0;const doublegrams= gram;const doubleg= gram;const doublemilligram= kilogram/1000000.0;const doublemilligrams= milligram;const doublemg= milligram;namespace metric {// weightconst doublecarat= gram/5.0;const doublecarats= carat;const doubleton= 1000.0*kilograms;const doubletons= ton;const doublet= ton;}// timeconst doublesecond= 1.0;const doubleseconds= second;const doublesec= second;const doubles= second;const doublemillisecond= second/1000.0;const doublemilliseconds= millisecond;const doublems= millisecond;const doublemicrosecond= second/1000000.0;const doublemicroseconds= microsecond;const doubleus= microsecond;const doublenanosecond= second/1000000000.0;const doublenanoseconds= nanosecond;const doublepicosecond= second/1000000000000.0;const doublepicoseconds= picosecond;const doubleminute= 60.0*seconds;const doubleminutes= minute;const doublemin= minute;const doublehour= 60.0*minutes;const doublehours= hour;const doublehr= hour;const doubleday= 24.0*hours;const doubledays= day;const doubleda= day;const doubleweek= 7.0*days;const doubleweeks= week;const doublefortnight= 2.0*weeks;const doublefortnights= fortnight;const doubleyear= 365.2421896698*days;const doubleyears= year;const doubleyr= year;const doublemonth= year/12.0;const doublemonths= month;const doublemo= month;const doubledecade= 10.0*years;const doubledecades= decade;const doublecentury= 100.0*years;const doublecenturies= century;const doublemillenium= 1000.0*years;const doublemillenia= millenium;// temporal frequencyconst doubleHertz= 1.0/second;const doubleHz= Hertz;const doublekiloHertz= 1000.0*Hertz;const doublekHz= kiloHertz;const doublemegaHertz= 1000000*Hertz;const doubleMHz= megaHertz;// spacial frequencyconst doublediopter= 1.0/meter;const doublediopters= diopter;// speedconst doublekph= kilometers/hour;// radioactivityconst doubleBecquerel= 1.0/second;const doubleBecquerels= Becquerel;const doubleBq= Becquerel;const doubleRutherford= 1000000.0*Becquerels;const doubleRutherfords= Rutherford;const doubleCurie= 3.7e+10*Becquerels;const doubleCuries= Curie;const doubleCi= Curie;// forceconst doubleNewton= kilogram*meter/(second*second);const doubleNewtons= Newton;const doubleN= Newton;const doubledyne= Newton/100000.0;const doubledynes= dyne;const doubledyn= dyne;// pressureconst doublePascal= Newton/(meter*meter);const doublePascals= Pascal;const doublePa= Pascal;const doubleBarie= Pascal/10.0;const doubleBaries= Barie;const doubleBarye= Barie;const doubleBaryes= Barye;const doublepieze= 1000.0*Pascals;const doublepiezes= pieze;const doublepz= pieze;const doublebar= 10000.0*Pascals;const doublebars= bar;const doubleTorr= 133.3224*Pascals;const doubleatmosphere= 760.0*Torr;const doubleatmospheres= atmosphere;const doubleatm= atmosphere;// energyconst doubleJoule= Newton*meter;const doubleJoules= Joule;const doubleJ= Joule;const doubleerg= Joule/10000000.0;const doubleergs= erg;const doublekiloWatthour= 3600000.0*Joules;const doublekiloWatthours= kiloWatthour;const doublekWh= kiloWatthour;// powerconst doubleWatt= Joule/second;const doubleWatts= Watt;const doubleW= Watt;const doublekiloWatt= 1000.0*Watts;const doublekiloWatts= kiloWatt;const doublekW= kiloWatt;const doublemegaWatt= 1000000.0*Watts;const doublemegaWatts= megaWatt;const doubleMW= megaWatt;const doublemilliWatt= Watt/1000.0;const doublemilliWatts= milliWatt;const doublemW= milliWatt;namespace dose {// energyconst doubleGray= Joule/kilogram;const doubleGrays= Gray;const doubleGy= Gray;const doubleSievert= Gray;const doubleSieverts= Sieverts;const doublerad= Gray/100.0;const doublerads= rad;const doublerd= rad;}// electrical currentconst doubleAmpere= 1.0;const doubleAmperes= Ampere;const doubleA= Ampere;const doubleBiot= 10.0*Amperes;const doubleBiots= Biot;// electrical potentialconst doubleVolt= Watt/Ampere;const doubleVolts= Volt;const doubleV= Volt;// electrical resistanceconst doubleOhm= Volt/Ampere;const doubleOhms= Ohm;// electrical conductanceconst doublemho= 1.0/Ohm;const doublemhos= mho;const doubleSiemens= mho;const doubleS= Siemens;// elsectrical chargeconst doubleCoulomb= Ampere*second;const doubleCoulombs= Coulomb;const doubleC= Coulomb;const doubleFranklin= 3.33564e-10*Coulombs;const doubleFranklins= Franklin;// electrical capacityconst doubleFarad= Coulomb/Volt;const doubleFarads= Farad;const doubleF= Farad;// magnetic fluxconst doubleWeber= Volt*second;const doubleWebers= Weber;const doubleWb= Weber;const doubleMaxwell= Weber/100000000.0;const doubleMaxwells= Maxwell;const doubleM= Maxwell;// magnetic field Bconst doubleTesla= Weber/(meter*meter);const doubleTeslas= Tesla;const doubleT= Tesla;const doubleGauss= Tesla/10000.0;const doublegamma= Tesla/1000000000.0;// magnetic field Hconst doubleOerstedt= 79.57747*Ampere/meter;const doubleOerstedts= Oerstedt;const doubleOe= Oerstedt;// magnetic inductivityconst doubleHenry= Weber/Ampere;const doubleHenrys= Henry;const doubleH= Henry;const doublemilliHenry= Henry/1000.0;const doublemilliHenrys= milliHenry;const doublemH= milliHenry;// temperatureconst doubleKelvin= 1.0;const doubleKelvins= Kelvin;const doubleK= Kelvin;// luminous intensityconst doublecandela= 1.0;const doublecandelas= candela;const doublecd= candela;const doubleapostilb= candelas/meter/meter;const doubleapostilbs= apostilb;const doublenit= apostilb;const doublenits= nit;const doubleskot= apostilb/1000.0;const doubleskots= skot;const doublestilb= 10000.0*apostilbs;const doublestilbs= stilb;const doubleBlondel= apostilb/pi;const doubleBlondels= Blondel;const doubleLambert= 10000.0*Blondels;const doubleLamberts= Lambert;// light fluxconst doublelumen= candela*steradian;const doublelumens= lumen;const doublelm= lumen;// light intensityconst doublelux= lumens/meter/meter;const doubleluxes= lux;const doubleluces= lux;const doublelx= lux;const doublenox= lux/1000.0;const doublephot= lumens/centimeter/centimeter;const doublephots= phot;namespace equivalent {const doublelux= unit::lux/pi;const doubleluxes= lux;const doubleluces= lux;const doublelx= lux;const doublelumen= unit::lumen/pi;const doublelumens= lumen;const doublelm= lumen;const doublephot= apostilb/pi;const doublephots= phot;}// accelerationconst doubleGalileo= centimeters/second/second;const doubleGalileos= Galileo;// standard gavitational acceleration at sea levelconst doublegravity= 9.80665*meters/second/second;// massconst doublekilohyl= kilogram*gravity*second*second/meter;const doublekilohyls= kilohyl;const doublehyl= kilohyl/1000.0;const doublehyls= hyl; // English Units// lengthconst doubleinch= 0.0254*meters;const doubleinches= inch;const doublein= inch;const doublemil= inch/1000.0;const doublemils= mil;const doublepoint= inch/72.27;const doublepoints= point;const doublept= point;const doublebottommeasure= inch/40.0;const doublebottommeasures= bottommeasure;const doubleline= inch/12.0;const doublelines= line;const doublepica= 12.0*points;const doublepicas= pica;const doublebarleycorn= inch/3.0;const doublebarleycorns= barleycorn;const doublefinger= 7.0*inches/8.0;const doublefingers= finger;const doublepalm= 3.0*inches;const doublepalms= palm;const doublehand= 4.0*inches;const doublehands= hand;const doublelink= 7.92*inches;const doublelinks= link;const doubleli= link;const doublespan= 9.0*inches;const doublespans= span;const doublefoot= 12.0*inches;const doublefeet= foot;const doubleft= foot;const doublecubit= 18.0*inches;const doublecubits= cubit;const doubleyard= 3.0*feet;const doubleyards= yard;const doubleyd= yard;const doublenail= yard/16.0;const doublenails= nail;const doubleell= 45.0*inches;const doubleells= ell;const doublepace= 5.0*feet;const doublepaces= pace;const doublefathom= 6.0*feet;const doublefathoms= fathom;const doublefm= fathom;const doublerod= 198.0*inches;const doublerods= rod;const doublerd= rod;const doublepole= rod;const doublepoles= pole;const doublep= pole;const doubleperch= rod;const doubleperches= perch;const doublerope= 20.0*feet;const doubleropes= rope;const doublebolt= 40.0*yards;const doublebolts= bolt;const doublechain= 4.0*rods;const doublechains= chain;const doublech= chain;namespace Gunters {const doublechain= unit::chain;const doublechains= chain;}namespace engineers {const doublelink= foot;const doublelinks= link;const doublechain= 100.0*feet;const doublechains= chain;}const doubleskein= 120*yards;const doubleskeins= skein;const doublefurlong= 220*yards;const doublefurlongs= furlong;const doublespindle= 14400*yards;const doublespindles= spindle;namespace US {const doublecable_length= 120.0*fathoms;const doublecable_lengths= cable_length;}namespace British {const doublecable_length= 100.0*fathoms;const doublecable_lengths= cable_length;}namespace statute {const doublemile= 5280.0*feet;const doublemiles= mile;const doublemi= mile;const doubleleague= 3.0*miles;const doubleleagues= league;}namespace nautical {const doublemile= 1852*meters;const doublemiles= mile;const doublenm= mile;const doubleleague= 3.0*miles;const doubleleagues= league;}namespace marine = nautical;namespace geodetic {const doublefoot= (1200.0/3937.0)*meters;const doublefeet= foot;const doubleft= foot;}namespace geographical {const doublemile= nautical::mile;const doublemiles= mile;const doublemi= mile;}const doubleparasang= 3.5*statute::miles;const doubleparasangs= parasang;const doublearpentcan= 27.52*statute::miles;const doublearpentcans= arpentcan;const doublearpentlin= 191.835*feet;const doublearpentlins= arpentlin;const double astronomical_unit= 1.49597871e11*meters;const double astronomical_units= astronomical_unit;const doubleAU= astronomical_unit;const doublelightyear= 9.4605e15*meters;const doublelightyears= lightyear;const doublely= lightyear;const doubleparsec= AU*radians/arc::second;const doubleparsecs= parsec;const doublepc= parsec;// areaconst doublebarn= 1.0e-28*meter*meter;const doublebarns= barn;const doubleb= barn;const doublecircular_inch= 0.25*pi*inch*inch;const doublecircular_inches= circular_inch;const doublecircular_mil= 0.25*pi*mil*mil;const doublecircular_mils= circular_mil;const doublesabin= foot*foot;const doublesabins= sabin;const doublesquare= 100.0*sabin;const doublesquares= square;const doubleare= 100.0*meter*meter;const doubleares= are;const doublea= are;const doublerood= 40.0*rod*rod;const doubleroods= rood;const doublero= rood;const doubleacre= 4.0*roods;const doubleacres= acre;const doublesection= statute::mile*statute::mile;const doublesections= section;const doublehomestead= section/4.0;const doublehomesteads= homestead;const doubletownship= 36.0*sections;const doubletownships= township;// volumeconst doubleminim= 6.161152e-8*(m*m*m);const doubleminims= minim;const doubledrop= 0.03*cc;const doubledrops= drop;const doubleteaspoon= 4.928922*cc;const doubleteaspoons= teaspoon;const doubletablespoon= 3.0*teaspoons;const doubletablespoons= tablespoon;namespace US {namespace liquid {const doubledram= 60.0*minims;const doubledrams= dram;const doubledr= dram;const doubleounce= 8.0*drams;const doubleounces= ounce;const doubleoz= ounce;const doublegill= 4.0*ounces;const doublegills= gill;const doublegl= gill;const doublepint= 4.0*gills;const doublepints= pint;const doublept= pint;const doublequart= 2.0*pints;const doublequarts= quart;const doubleqt= quart;const doublemagnum= 2.0*quarts;const doublemagnums= magnum;const doublegallon= 4.0*quarts;const doublegallons= gallon;const doublegal= gallon;}namespace dry {const doublepint= 550.61047*cc;const doublepints= pint;const doublept= pint;const doublequart= 2.0*pints;const doublequarts= quart;const doubleqt= quart;}const doublepeck= 8.0*dry::quarts;const doublepecks= peck;const doublepk= peck;const doublebushel= 4.0*pecks;const doublebushels= bushel;const doublebu= bushel;const doublebarrel= 31.5*liquid::gallons;const doublebarrels= barrel;const doublebbl= barrel;const doublebl= barrel;}namespace British {namespace fluid {const doubledrachm= 60.0*minims;const doubledrachms= drachm;const doubledr= drachm;const doubleounce= 8.0*drachms;const doubleounces= ounce;const doubleoz= ounce;const doublegill= 5.0*ounces;const doublegills= gill;const doublegi= gill;const doublepint= 4.0*gills;const doublepints= pint;const doublept= pint;const doublequart= 2.0*pints;const doublequarts= quart;const doubleqt= quart;const doublegallon= 4.0*quarts;const doublegallons= gallon;const doublegal= gallon;}const doublepeck= 2.0*fluid::gallons;const doublepecks= peck;const doublepk= peck;const doublebushel= 4.0*pecks;const doublebushels= bushel;const doublebu= bushel;const doublebarrel= 36.0*fluid::gallons;const doublebarrels= barrel;const doublebbl= barrel;const doublebl= barrel;}const doublenoggin= 2.0*US::liquid::ounces;const doublenoggins= noggin;const doublecup= 8.0*US::liquid::ounces;const doublecups= cup;const doublefifth= US::liquid::gallon/5.0;const doublefifths= fifth;const doublejeroboam= 4.0*fifths;const doublejeroboams= jeroboam;const doublefirkin= 9.0*US::liquid::gallons;const doublefirkins= firkin;const doublekilderkin= 18.0*US::liquid::gallons;const doublekilderkins= kilderkin;const doublestrike= 2.0*US::bushels;const doublestrikes= strike;const doublesack= 3.0*US::bushels;const doublesacks= sack;const doublecoomb= 4.0*US::bushels;const doublecoombs= coomb;const doubleseam= 8.0*US::bushels;const doubleseams= seam;const doublewey= 40.0*US::bushels;const doubleweys= wey;const doublelast= 80.0*US::bushels;const doublelasts= last;const doubleregister_ton= 100.0*(ft*ft*ft);const doubleregister_tons= register_ton;const doubleregister_tn= register_ton;const doublecord= 128.0*(ft*ft*ft);const doublecords= cord;const doublecordfoot= cord;const doublecordfeet= cordfoot;const doubleboardfoot= 144.0*inch*inch*inch;const doubleboardfeet= boardfoot;const doubletimberfoot= foot*foot*foot;const doubletimberfeet= timberfoot;const doublehogshead= 2.0*US::barrels;const doublehogsheads= hogshead;const doublepipe= 4.0*US::barrels;const doublepipes= pipe;const doubletun= 8.0*US::barrels;const doubletuns= tun;// massconst doublegrain= 0.06479891*grams;const doublegrains= grain;const doublegr= grain;const doublepennyweight= 24.0*grains;const doubledwt= pennyweight;namespace apothecary {// weightconst doublescruple= 20.0*grains;const doublescruples= scruple;const doubles= scruple;const doubledram= 3.0*scruples;const doubledrams= dram;const doubledr= dram;const doubleounce= 8.0*drams;const doubleounces= ounce;const doubleoz= ounce;const doublepound= 12.0*ounces;const doublepounds= pound;const doublelb= pound;}namespace troy = apothecary;namespace ap = apothecary;namespace t = apothecary;namespace avoirdupois {// weightconst doublepound= 7000.0*grains;const doublepounds= pound;const doublelb= pound;const doubleounce= pound/16.0;const doubleounces= ounce;const doubleoz= ounce;const doubledram= ounce/16.0;const doubledrams= dram;const doubledr= dram;}namespace avdp = avoirdupois;namespace av = avoirdupois;const doublestone= 14.0*avoirdupois::pounds;const doublestones= stone;const doublest= stone;namespace US {// shortconst doublehundredweight= 100.0*avoirdupois::pounds;const doublecwt= hundredweight;const doublequarter= hundredweight/4.0;const doublequarters= quarter;const doubleqr= quarter;const doubleton= 20.0*hundredweight;const doubletons= ton;const doubletn= ton;const doubledeadweight= ton;}namespace British {// longconst doublehundredweight= 112.0*avoirdupois::pounds;const doublecwt= hundredweight;const doublequarter= hundredweight/4.0;const doublequarters= quarter;const doubleqr= quarter;const doubleton= 20.0*hundredweight;const doubletons= ton;const doubletn= ton;}namespace English = British;namespace Imperial = British;const doublecrith= 0.0906*grams;const doublecriths= crith;const doublebag= 94.0*avoirdupois::pounds;const doublebags= bag;const doublecental= 100.0*avoirdupois::pounds;const doublecentals= cental;const doubleweymass= 252.0*avoirdupois::pounds;// rateconst doublemgd= 1000000.0*US::liquid::gallons/day;const doublecfs= foot*foot*foot/second;const doubleminersinch= 1.5*foot*foot*foot/minute;const doublempg= statute::miles/US::liquid::gallon;// speedconst doublemph= statute::miles/hour;const doubleknot= nautical::miles/hour;const doubleknots= knot;namespace admiralty {const doubleknot= 6980.0*feet/hour;const doubleknots= knot;}// forceconst doublepoundal= avdp::pound*foot/(second*second);const doublepoundals= poundal;const doublepdl= poundal;const doublelbf= avoirdupois::pound*gravity;// pressureconst doublepsi= lbf/(inch*inch);// energyconst doublecalorie= 4.1868*Joules;const doublecalories= calorie;const doublecal= calorie;const doublekilocalorie= 1000.0*calories;const doublekilocalories= kilocalorie;const doublekcal= kilocalorie;const doubleFrigorie= kilocalorie;const doubleFrigories= Frigorie;const doubleBtu= 1055.06*Joules;const doubletherm= 10000.0*Btu;const doubletherms= therm;const doublethermie= 1000000.0*calories;const doublethermies= thermie;// powerconst doublehorsepower= 735.49875*Watts;const doubleHP= horsepower;// electrical currentconst doubleGilbert= 0.795775*Amperes;const doubleGilberts= Gilbert;// temperatureconst doubleRankin= 1.8*Kelvins;const doubleRankins= Rankin;const doubleR= Rankin;// luminous intensityconst doublecandle= 1.02*candelas;const doublecandles= candle;namespace Hefner {const doublecandle= 0.9*unit::candles;const doublecandles= candle;}// light intensityconst doublefoot_candle= lumens/foot/foot;const doublefoot_candles= foot_candle;const doublefc= foot_candle;const doublefoot_Lambert= candelas/foot/foot/pi;const doublefoot_Lamberts= foot_Lambert;namespace equivalent {const doublefoot_candle= unit::foot_candle/pi;const doublefoot_candles= foot_candle;const doublefc= foot_candle;}}namespace units = unit; namespace constant {using namespace units;// speed of lightconst doublec= 2.99792458e8*meters/second;// speed of soundconst doubleMach= 331.46*meters/second;// Planck constantconst doubleh= 6.6260755e-34*Joule*seconds;const doubleh_bar= h/(2.0*pi);// standard gavitational acceleration at sea levelconst doubleg= units::gravity;// electron chargeconst doublee= 1.60217733e-19*Coulombs;// elevtron Voltconst doubleeV= e*V;const doublekeV= 1000.0*eV;const doubleMeV= 1000000.0*eV;const doubleGeV= 1000000000.0*eV;const doubleRydberg= 13.6054*eV;const doubleRydbergs= Rydberg;// electron massconst doublem_e= 9.1093897e-31*kilograms;// proton massconst doublem_P= 1.6726231e-27*kilograms;// deuteron massconst doublem_D= 1875.61339*MeV/(c*c);// unified atomic mass unitconst doubleatomic_mass_unit= 1.6605402e-27*kilograms;const doubleatomic_mass_units= atomic_mass_unit;const doubleamu= atomic_mass_unit;const doubleDalton= atomic_mass_unit;const doubleDaltons= Dalton;// permittivity of free spaceconst doubleepsilon= 8.854187817e-12*Farads/meter;// permeability of free spaceconst doublemu= 12.566370614e-7*Newtons/(A*A);// fine-structure constantconst doublealpha= 1.0/137.0359895;// classical electron radiusconst doubler_e= 2.81794092e-15*meters;// electron Compton wavelengthconst doublelambda_bar= 3.86159323e-13*meters;// Bohr radiusconst doublea_0= 0.529177249e-10*meters;// wavelength of 1 eV/c particleconst doublelambda_1eV= 1.23984244e-6*meters;// Thomson cross sectionconst doublesigma_0= 0.66524616*barns;// Bohr magnetonconst doublemu_B= 5.78838263e-11*MeV/Tesla;// nuclear magnetonconst doublemu_N= 3.15245166e-14*MeV/Tesla;// electron cyclotron frequency/fieldconst doubleE_M_e= 1.75881962e11*C/kg*(rad/(s*T));// proton cyclotron frequency/fieldconst doubleE_M_P= 9.5788309e7*C/kg*(rad/(s*T));// gravitational constantconst doubleG= 6.67259e-11*m*m*m/(kg*s*s);// Avogadro''s constantconst doubleN_A= 6.0221367e23;// Boltzmann constantconst doubleK_B= 1.380658e-23*Joules/Kelvin;// molar volume, ideal gas at standard temperature and pressureconst doubleV_molar= 2.897756e-3*meter*Kelvins;// Stefan-Boltzmann constantconst doublesigma_SB= 5.67051e-8*W/(m*m*K*K*K*K);//}namespace constants = constant;}推荐答案 It creates an alias for namespace unit named units. You can now refer to the stuff in the unit namespace throught either unit::stuff or units::stuff. Jacques. It creates an alias for namespace unit named units. You can now refer tothe stuff in the unit namespace throught either unit::stuff orunits::stuff. Jacques. It creates an alias for namespace unit named units. You can now refer to the stuff in the unit namespace throught either unit::stuff or units::stuff. It creates an alias for namespace unit named units. You can now refer to the stuff in the unit namespace throught either unit::stuff or units::stuff. It’’s like typedef for namespaces. It''s like typedef for namespaces. 这篇关于物理常量头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-23 17:01