[system] / trunk / pg / macros / StdConst.pg Repository:
ViewVC logotype

Annotation of /trunk/pg/macros/StdConst.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1064 - (view) (download)

1 : gage 1064
2 :     ##
3 :     ## macros for Fundamental Constants, in SI units!
4 :     ##
5 :     ## Gravitational constant CapG: Units-> m3/kgs2 or Nm2/kg2
6 :     $CapG = 6.67e-11 ;
7 :     ##
8 :     ## Speed of light in m/s:
9 :     $smallc = 2.99792458e+8 ;
10 :     ##
11 :     ## Electron charge in C:
12 :     $smalle = 1.602177e-19 ;
13 :     ##
14 :     ## Planck constant, smallh: Units ->Js
15 :     $smallh = 6.626075e-34 ;
16 :     ##
17 :     ## Boltzmann constant, smallk: Units ->J/K
18 :     $smallk = 1.38066e-23 ;
19 :     ##
20 :     ## standardgrav. accel sea level, smallg: Units ->m/s2
21 :     $smallg = 9.8 ;
22 :    
23 :     ##
24 :     ## Pi:
25 :     $pi = 3.1415926536 ;
26 :     ##
27 :     ## From degrees to radians:
28 :     $degrad = $pi / 180.0 ;
29 :     ##
30 :     ## From radians to degrees:
31 :     $raddeg = 180.0 / $pi ;
32 :    
33 :     1;
34 :     #################################################
35 :     ## Processing time = 2 secs ( 1.96 usr 0.41 sys = 2.38 cpu)
36 :     #################################################

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9