⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 const.texi

📁 开放gsl矩阵运算
💻 TEXI
字号:
@cindex physical constants@cindex constants, physical@cindex conversion of units@cindex units, conversion ofThis chapter describes macros for the values of physical constants, suchas the speed of light, @math{c}, and gravitational constant, @math{G}.The values are available in different unit systems, including thestandard MKS system (meters, kilograms, seconds) and the CGS system(centimeters, grams, seconds), which is commonly used in Astronomy.The definitions of constants in the MKS system are available in the file@file{gsl_const_mks.h}.  The constants in the CGS system are defined in@file{gsl_const_cgs.h}.  Dimensionless constants, such as the finestructure constant, which are pure numbers are defined in@file{gsl_const_num.h}.@menu* Fundamental Constants::       * Astronomy and Astrophysics::  * Atomic and Nuclear Physics::  * Measurement of Time::         * Imperial Units ::             * Nautical Units::              * Printers Units::              * Volume::                      * Mass and Weight ::            * Thermal Energy and Power::    * Pressure::                    * Viscosity::                   * Light and Illumination::      * Radioactivity::               * Physical Constant Examples::  * Physical Constant References and Further Reading::  @end menuThe full list of constants is described briefly below.  Consult theheader files themselves for the values of the constants used in thelibrary.@node Fundamental Constants@section Fundamental Constants@cindex fundamental constants@cindex constants, fundamental@table @code@item GSL_CONST_MKS_SPEED_OF_LIGHTThe speed of light in vacuum, @math{c}.@item GSL_CONST_NUM_AVOGADROAvogadro's number, @math{N_a}.@item GSL_CONST_MKS_FARADAYThe molar charge of 1 Faraday.@item GSL_CONST_MKS_BOLTZMANNThe Boltzmann constant, @math{k}.@item GSL_CONST_MKS_MOLAR_GASThe molar gas constant, @math{R_0}.@item GSL_CONST_MKS_STANDARD_GAS_VOLUMEThe standard gas volume, @math{V_0}.@item GSL_CONST_MKS_GAUSSThe magnetic field of 1 Gauss.@item GSL_CONST_MKS_MICRONThe length of 1 micron.@item GSL_CONST_MKS_HECTAREThe area of 1 hectare.@item GSL_CONST_MKS_MILES_PER_HOURThe speed of 1 mile per hour.@item GSL_CONST_MKS_KILOMETERS_PER_HOURThe speed of 1 kilometer per hour.@end table@node Astronomy and Astrophysics@section Astronomy and Astrophysics@cindex astronomical constants@table @code@item GSL_CONST_MKS_ASTRONOMICAL_UNITThe length of 1 astronomical unit (mean earth-sun distance), @math{au}.@item GSL_CONST_MKS_GRAVITATIONAL_CONSTANTThe gravitational constant, @math{G}.@item GSL_CONST_MKS_LIGHT_YEARThe distance of 1 light-year, @math{ly}.@item GSL_CONST_MKS_PARSECThe distance of 1 parsec, @math{pc}.@item GSL_CONST_MKS_GRAV_ACCELThe standard gravitational acceleration on Earth, @math{g}.@item GSL_CONST_MKS_SOLAR_MASSThe mass of the Sun.@end table@node Atomic and Nuclear Physics@section Atomic and Nuclear Physics@cindex atomic physics, constants@cindex nuclear physics, constants@table @code@item GSL_CONST_MKS_ELECTRON_CHARGEThe charge of the electron, @math{e}.@item GSL_CONST_MKS_ELECTRON_VOLTThe energy of 1 electron volt, @math{eV}.@item GSL_CONST_MKS_UNIFIED_ATOMIC_MASSThe unified atomic mass, @math{amu}.@item GSL_CONST_MKS_MASS_ELECTRONThe mass of the electron, @math{m_e}.@item GSL_CONST_MKS_MASS_MUONThe mass of the muon, @math{m_\mu}.@item GSL_CONST_MKS_MASS_PROTONThe mass of the proton, @math{m_p}.@item GSL_CONST_MKS_MASS_NEUTRONThe mass of the neutron, @math{m_n}.@item GSL_CONST_NUM_FINE_STRUCTUREThe electromagnetic fine structure constant @math{\alpha}.@item GSL_CONST_MKS_RYDBERGThe Rydberg constant, @math{Ry}.@item GSL_CONST_MKS_ANGSTROMThe length of 1 angstrom.@item GSL_CONST_MKS_BARNThe area of 1 barn.@item GSL_CONST_MKS_BOHR_MAGNETONThe Bohr Magneton, @math{\mu_B}.@item GSL_CONST_MKS_NUCLEAR_MAGNETONThe Nuclear Magneton, @math{\mu_N}.@item GSL_CONST_MKS_ELECTRON_MAGNETIC_MOMENTThe magnetic moment of the electron, @math{\mu_e}.@item GSL_CONST_MKS_PROTON_MAGNETIC_MOMENTThe magnetic moment of the proton, @math{\mu_p}.@end table@node Measurement of Time@section Measurement of Time@cindex time units@table @code@item GSL_CONST_MKS_MINUTEThe number of seconds in 1 minute.@item GSL_CONST_MKS_HOURThe number of seconds in 1 hour.@item GSL_CONST_MKS_DAYThe number of seconds in 1 day.@item GSL_CONST_MKS_WEEKThe number of seconds in 1 week.@end table@node Imperial Units @section Imperial Units@cindex imperial units@cindex units, imperial@table @code@item GSL_CONST_MKS_INCHThe length of 1 inch.@item GSL_CONST_MKS_FOOTThe length of 1 foot.@item GSL_CONST_MKS_YARDThe length of 1 yard.@item GSL_CONST_MKS_MILEThe length of 1 mile.@item GSL_CONST_MKS_MILThe length of 1 mil (1/1000th of an inch).@end table@node Nautical Units@section Nautical Units@cindex nautical units@table @code@item GSL_CONST_MKS_NAUTICAL_MILEThe length of 1 nautical mile.@item GSL_CONST_MKS_FATHOMThe length of 1 fathom.@item GSL_CONST_MKS_KNOTThe speed of 1 knot.@end table@node Printers Units@section Printers Units@cindex printers units@table @code@item GSL_CONST_MKS_POINTThe length of 1 printer's point (1/72 inch).@item GSL_CONST_MKS_TEXPOINTThe length of 1 TeX point (1/72.27 inch).@end table@node Volume@section Volume@cindex volume units@table @code@item GSL_CONST_MKS_ACREThe area of 1 acre.@item GSL_CONST_MKS_LITERThe volume of 1 liter.@item GSL_CONST_MKS_US_GALLONThe volume of 1 US gallon.@item GSL_CONST_MKS_CANADIAN_GALLONThe volume of 1 Canadian gallon.@item GSL_CONST_MKS_UK_GALLONThe volume of 1 UK gallon.@item GSL_CONST_MKS_QUARTThe volume of 1 quart.@item GSL_CONST_MKS_PINTThe volume of 1 pint.@end table@comment @node Cookery@comment @section Cookery@comment @commentindex cookery units@comment @table @commentode@comment @item GSL_CONST_MKS_CUP@comment The volume of 1 cup.@comment @item GSL_CONST_MKS_FLUID_OUNCE@comment The volume of 1 fluid ounce.@comment @item GSL_CONST_MKS_TABLESPOON@comment The volume of 1 tablespoon.@comment @item GSL_CONST_MKS_TEASPOON@comment The volume of 1 teaspoon.@comment @end table@node Mass and Weight @section Mass and Weight@cindex mass, units of@cindex weight, units of@table @code@item GSL_CONST_MKS_POUND_MASSThe mass of 1 pound.@item GSL_CONST_MKS_OUNCE_MASSThe mass of 1 ounce.@item GSL_CONST_MKS_TONThe mass of 1 ton.@item GSL_CONST_MKS_METRIC_TONThe mass of 1 metric ton (1000 kg).@item GSL_CONST_MKS_UK_TONThe mass of 1 UK ton.@item GSL_CONST_MKS_TROY_OUNCEThe mass of 1 troy ounce.@item GSL_CONST_MKS_CARATThe mass of 1 carat.@item GSL_CONST_MKS_GRAM_FORCEThe force of 1 gram weight.@item GSL_CONST_MKS_POUND_FORCEThe force of 1 pound weight.@item GSL_CONST_MKS_KILOPOUND_FORCEThe force of 1 kilopound weight.@item GSL_CONST_MKS_POUNDALThe force of 1 poundal.@end table@node Thermal Energy and Power@section Thermal Energy and Power@cindex energy, units of@cindex power, units of@cindex thermal energy, units of@table @code@item GSL_CONST_MKS_CALORIEThe energy of 1 calorie.@item GSL_CONST_MKS_BTUThe energy of 1 British Thermal Unit, @math{btu}.@item GSL_CONST_MKS_THERMThe energy of 1 Therm.@item GSL_CONST_MKS_HORSEPOWERThe power of 1 horsepower.@end table@node Pressure@section Pressure@cindex pressure, units of@table @code@item GSL_CONST_MKS_BARThe pressure of 1 bar.@item GSL_CONST_MKS_STD_ATMOSPHEREThe pressure of 1 standard atmosphere.@item GSL_CONST_MKS_TORRThe pressure of 1 torr.@item GSL_CONST_MKS_METER_OF_MERCURYThe pressure of 1 meter of mercury.@item GSL_CONST_MKS_INCH_OF_MERCURYThe pressure of 1 inch of mercury.@item GSL_CONST_MKS_INCH_OF_WATERThe pressure of 1 inch of water.@item GSL_CONST_MKS_PSIThe pressure of 1 pound per square inch.@end table@node Viscosity@section Viscosity@cindex viscosity, units of@table @code@item GSL_CONST_MKS_POISEThe dynamic viscosity of 1 poise.@item GSL_CONST_MKS_STOKESThe kinematic viscosity of 1 stokes.@end table@node Light and Illumination@section Light and Illumination@cindex light, units of@cindex illumination, units of@table @code@item GSL_CONST_MKS_STILBThe luminance of 1 stilb.@item GSL_CONST_MKS_LUMENThe luminous flux of 1 lumen.@item GSL_CONST_MKS_LUXThe illuminance of 1 lux.@item GSL_CONST_MKS_PHOTThe illuminance of 1 phot.@item GSL_CONST_MKS_FOOTCANDLEThe illuminance of 1 footcandle.@item GSL_CONST_MKS_LAMBERTThe luminance of 1 lambert.@item GSL_CONST_MKS_FOOTLAMBERTThe luminance of 1 footlambert.@end table@node Radioactivity@section Radioactivity@cindex radioactivity, units of@table @code@item GSL_CONST_MKS_CURIEThe activity of 1 curie.@item GSL_CONST_MKS_ROENTGENThe exposure of 1 roentgen.@item GSL_CONST_MKS_RADThe absorbed dose of 1 rad.@end table@node Physical Constant Examples@section ExamplesThe following program demonstrates the use of the physical constants ina calculation.  In this case, the goal is to calculate the range oflight-travel times from Earth to Mars.The required data is the average distance of each planet from the Sun inastronomical units (the eccentricities of the orbits will be neglectedfor the purposes of this calculation).  The average radius of the orbitof Mars is 1.52 astronomical units, and for the orbit of Earth it is 1astronomical unit (by definition).  These values are combined with theMKS values of the constants for the speed of light and the length of anastronomical unit to produce a result for the shortest and longestlight-travel times in seconds.  The figures are converted into minutesbefore being displayed.@example#include <stdio.h>#include <gsl/gsl_const_mks.h>intmain (void)@{  double c  = GSL_CONST_MKS_SPEED_OF_LIGHT;  double au = GSL_CONST_MKS_ASTRONOMICAL_UNIT;  double minutes = GSL_CONST_MKS_MINUTE;  /* distance stored in meters */  double r_earth = 1.00 * au;    double r_mars  = 1.52 * au;  double t_min, t_max;  t_min = (r_mars - r_earth) / c;  t_max = (r_mars + r_earth) / c;  printf("light travel time from Earth to Mars:\n");  printf("minimum = %.1f minutes\n", t_min / minutes);  printf("maximum = %.1f minutes\n", t_max / minutes);  return 0;@}@end example@noindentHere is the output from the program,@examplelight travel time from Earth to Mars:minimum = 4.3 minutesmaximum = 21.0 minutes@end example@node Physical Constant References and Further Reading@section References and Further Reading@noindentFurther information on the values of physical constants is availablefrom the NIST website,@itemize @asis@item@url{http://www.physics.nist.gov/cuu/Constants/index.html}@end itemize

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -