conhelp

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
m (Added unithelp to list of related functions)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DavinciWiki_Function|Displays description of con (constants structure)
+
{{DavinciWiki_Function|
 +
Displays description of con (constants structure)
  
 
This is a user-defined function from constants.dvrc
 
This is a user-defined function from constants.dvrc
 
|
 
|
 
Arguments: None; just enter conhelp()
 
Arguments: None; just enter conhelp()
+
 
 
Return Value: Prints description of each element of structure con when not given any input; returns zero for any input(s)
 
Return Value: Prints description of each element of structure con when not given any input; returns zero for any input(s)
 
|
 
|
Line 10: Line 11:
 
|
 
|
 
  dv> con
 
  dv> con
  struct, 22 elements
+
  struct, 23 elements
 
     e: 2.71828
 
     e: 2.71828
 
     phi: 1.61803
 
     phi: 1.61803
     AU: 1.49600e+11
+
    pi: 3.14159
 +
     AU: 1.49598e+11
 
     b: 0.00289777
 
     b: 0.00289777
 
     c: 2.99792e+08
 
     c: 2.99792e+08
Line 36: Line 38:
 
   
 
   
 
  conhelp() displays descriptions of all physical constants in structure con
 
  conhelp() displays descriptions of all physical constants in structure con
  S.Marshall 12-10-2007
+
  S.Marshall 02-18-2008
 
   
 
   
     e    =  2.718282                Base of natural logarithm
+
     e    =  2.718281828459045        Base of natural logarithm
     phi  =  1.618034                Golden ratio
+
     phi  =  1.618033988749895        Golden ratio
 +
    pi    =  3.141592653589793        Pi
 
   
 
   
     AU    =  1.496000e11 m           Astronomical unit
+
     AU    =  1.49597870691e+11 m     Astronomical unit
 
   
 
   
     The following physical constants use CODATA 2006 values,
+
     The following physical constants use the CODATA 2006 values,
 
       from http://physics.nist.gov/cuu/Constants
 
       from http://physics.nist.gov/cuu/Constants
 
   
 
   
     b    =  2.897768e-3 m*K         Wien wavelength displacement law constant
+
     b    =  2.8977685e-03 m*K       Wien wavelength displacement law constant
     c    =  299792448 m/s           Speed of light in a vacuum
+
     c    =  299792458 m/s           Speed of light in a vacuum (exact)
     eps0  =  8.854188e-12 F/m       Electric constant (permittivity)
+
     eps0  =  8.854187817e-12 F/m     Electric constant (permittivity)
     eV    =  1.602177e-19 J         Electron volt
+
     eV    =  1.602176487e-19 J       Electron volt
     F    =  9.648535e4 C/mol       Faraday constant
+
     F    =  96485.3399 C/mol         Faraday constant
     G    =  6.674280e-11 m^3/kg/s^2 Newtonian gravitation constant
+
     G    =  6.67428e-11 m^3/kg/s^2   Newtonian gravitation constant
     g    =  9.806650 m/s^2         Standard acceleration due to gravity
+
     g    =  9.80665 m/s^2           Standard acceleration due to gravity (exact)
     h    =  6.626069e-34 J*s       Planck constant
+
     h    =  6.62606896e-34 J*s       Planck constant
     hbar  =  1.054572e-34 J*s       Reduced Planck constant (Dirac constant)
+
     hbar  =  1.054571628e-34 J*s     Reduced Planck constant (Dirac constant)
     k    =  1.380651e-23 J/K        Boltzmann constant
+
     k    =  1.3806504e-23 J/K        Boltzmann constant
     me    =  9.109383e-31 kg         Electron mass
+
     me    =  9.10938215e-31 kg       Electron mass
     mn    =  1.674927e-27 kg         Neutron mass
+
     mn    =  1.674927211e-27 kg       Neutron mass
     mp    =  1.672622e-27 kg         Proton mass
+
     mp    =  1.672621637e-27 kg       Proton mass
     mu    =  1.660539e-27 kg         Atomic mass constant
+
     mu    =  1.660538782e-27 kg       Atomic mass constant
     mu0  =  1.256637e-6 N/A^2       Magnetic constant (permeability)
+
     mu0  =  1.2566370614e-06 N/A^2   Magnetic constant (permeability)
     NA    =  6.022142e23 mol^-1     Avogadro's number
+
     NA    =  6.02214179e+23 mol^-1   Avogadro's number
     qe    =  1.602177e-19 C         Elementary charge
+
     qe    =  1.602176487e-19 C       Elementary charge
     R    =  8.314472 J/mol/K       Ideal/molar gas constant
+
     R    =  8.314472 J/mol/K         Ideal/molar gas constant
     sigma =  5.670400e-8 W/m^2/K^4  Stefan-Boltzmann constant
+
     sigma =  5.670400e-08 W/m^2/K^4  Stefan-Boltzmann constant
 
   
 
   
 
  0
 
  0
Line 71: Line 74:
 
|
 
|
 
|
 
|
 +
*[[global]]
 
*[[printf]]
 
*[[printf]]
 
|
 
|
 
*[[solsys]]
 
*[[solsys]]
 +
*[[unithelp]]
 
|
 
|
 
*constants.dvrc
 
*constants.dvrc
 
|
 
|
1.70
+
|
 +
|
 
}}
 
}}
 
 
 
[[category:Functions]]
 
[[category:Functions]]
 
[[category:User Defined Functions]]
 
[[category:User Defined Functions]]
[[category:General_Science]]
+
[[category:General Science]]

Latest revision as of 13:41, 4 December 2010


Description

Displays description of con (constants structure)

This is a user-defined function from constants.dvrc

Arguments and Return Values

Arguments: None; just enter conhelp()

Return Value: Prints description of each element of structure con when not given any input; returns zero for any input(s)

Usage

Syntax: conhelp()

Examples

dv> con
struct, 23 elements
    e: 2.71828
    phi: 1.61803
    pi: 3.14159
    AU: 1.49598e+11
    b: 0.00289777
    c: 2.99792e+08
    eps0: 8.85419e-12
    eV: 1.60218e-19
    F: 96485.3
    G: 6.67428e-11
    g: 9.80665
    h: 6.62607e-34
    hbar: 1.05457e-34
    k: 1.38065e-23
    me: 9.10938e-31
    mn: 1.67493e-27
    mp: 1.67262e-27
    mu: 1.66054e-27
    mu0: 1.25664e-06
    NA: 6.02214e+23
    qe: 1.60218e-19
    R: 8.31447
    sigma: 5.67040e-08
dv> conhelp()

conhelp() displays descriptions of all physical constants in structure con
S.Marshall 02-18-2008

    e     =  2.718281828459045        Base of natural logarithm
    phi   =  1.618033988749895        Golden ratio
    pi    =  3.141592653589793        Pi

    AU    =  1.49597870691e+11 m      Astronomical unit

    The following physical constants use the CODATA 2006 values,
     from http://physics.nist.gov/cuu/Constants

    b     =  2.8977685e-03 m*K        Wien wavelength displacement law constant
    c     =  299792458 m/s            Speed of light in a vacuum (exact)
    eps0  =  8.854187817e-12 F/m      Electric constant (permittivity)
    eV    =  1.602176487e-19 J        Electron volt
    F     =  96485.3399 C/mol         Faraday constant
    G     =  6.67428e-11 m^3/kg/s^2   Newtonian gravitation constant
    g     =  9.80665 m/s^2            Standard acceleration due to gravity (exact)
    h     =  6.62606896e-34 J*s       Planck constant
    hbar  =  1.054571628e-34 J*s      Reduced Planck constant (Dirac constant)
    k     =  1.3806504e-23 J/K        Boltzmann constant
    me    =  9.10938215e-31 kg        Electron mass
    mn    =  1.674927211e-27 kg       Neutron mass
    mp    =  1.672621637e-27 kg       Proton mass
    mu    =  1.660538782e-27 kg       Atomic mass constant
    mu0   =  1.2566370614e-06 N/A^2   Magnetic constant (permeability)
    NA    =  6.02214179e+23 mol^-1    Avogadro's number
    qe    =  1.602176487e-19 C        Elementary charge
    R     =  8.314472 J/mol/K         Ideal/molar gas constant
    sigma =  5.670400e-08 W/m^2/K^4   Stefan-Boltzmann constant

0
dv> conhelp(1)
0

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 12-12-2007
Modified On: 12-04-2010

Personal tools