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

Annotation of /trunk/pg/macros/StdUnits.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1064 - (view) (download)

1 : gage 1064
2 :     ## Define some macros for the units:
3 :     ## Note: P means per in this notation, except for Pa =Pascal)
4 :     ## u is the unit indication
5 :     ##
6 :     $m_u = CAPA_tex( "/*m/*" , "m" ) ; # angle degree
7 :     $km_u = CAPA_tex( "/*km/*" , "km" ) ;
8 :     $cm_u = CAPA_tex( "/*cm/*" , "cm" ) ;
9 :     $mm_u = CAPA_tex( "/*mm/*" , "mm" ) ;
10 :     $um_u = CAPA_tex( "/*\micro m/*" , "um" ) ;
11 :     $nm_u = CAPA_tex( "/*nm/*" , "nm" ) ;
12 :     $fm_u = CAPA_tex( "/*fm/*" , "fm" ) ;
13 :     $m2_u = CAPA_tex( "/*m^2/*" , "m^2" ) ;
14 :     $m3_u = CAPA_tex( "/*m^3/*" , "m^3" ) ;
15 :     $cm2_u = CAPA_tex( "/*cm^2/*" , "cm^2" ) ;
16 :     $cm3_u = CAPA_tex( "/*cm^3/*" , "cm^3" ) ;
17 :     $mi_u = CAPA_tex( "/*mi/*" , "mi" ) ;
18 :     $ft_u = CAPA_tex( "/*ft/*" , "ft" ) ;
19 :     $in_u = CAPA_tex( "/*in./*" , "in." ) ;
20 :     $kg_u = CAPA_tex( "/*kg/*" , "kg" ) ;
21 :     $amu_u = CAPA_tex( "/*u/*" , "u" ) ;
22 :     $lb_u = CAPA_tex( "/*lb/*" , "lb" ) ;
23 :     $s_u = CAPA_tex( "/*s/*" , "s" ) ;
24 :     $min_u = CAPA_tex( "/*min/*" , "min" ) ;
25 :     $K_u = CAPA_tex( "/*K/*" , "K" ) ;
26 :     $degC_u = CAPA_tex( "/*^{\circ}\hspace*{-.015in}C/*" , "degC" ) ;
27 :     $degF_unit = CAPA_tex( "/*^{\circ}\hspace*{-.025in}F/*" , "degF" ) ;
28 :     $kmol_u = CAPA_tex( "/*kmol/*" , "kmol" ) ;
29 :     $Hz_u = CAPA_tex( "/*Hz/*" , "Hz" ) ;
30 :     $mPs_u = CAPA_tex( "/*m/s/*" , "m/s" ) ;
31 :     $cmPs_u = CAPA_tex( "/*cm/s/*" , "cm/s" ) ;
32 :     $kmPh_u = CAPA_tex( "/*km/h/*" , "km/h" ) ;
33 :     $miPh_u = CAPA_tex( "/*mi/h/*" , "mi/h" ) ;
34 :     $radPs_u = CAPA_tex( "/*rad/s/*" , "rad/s" ) ;
35 :     $Ps_u = CAPA_tex( "/*s^{-1}/*" , "s^-1" ) ;
36 :     $mPs2_u = CAPA_tex( "/*m/s^2/*" , "m/s2" ) ;
37 :     $cmPs2_u = CAPA_tex( "/*cm/s^2/*" , "cm/s2" ) ;
38 :     $radPs2_u = CAPA_tex( "/*rad/s^2/*" , "rad/s2" ) ;
39 :     $N_unit = CAPA_tex( "/*N/*" , "N" ) ;
40 :     $Pa_u = CAPA_tex( "/*Pa/*" , "Pa" ) ;
41 :     $atm_u = CAPA_tex( "/*atm/*" , "atm" ) ;
42 :     $NPm2_u = CAPA_tex( "/*N/m^2/*" , "N/m2" ) ;
43 :     $J_u = CAPA_tex( "/*J/*" , "J" ) ;
44 :     $hp_u = CAPA_tex( "/*hp/*" , "hp" ) ;
45 :     $eV_u = CAPA_tex( "/*eV/*" , "eV" ) ;
46 :     $cal_u = CAPA_tex( "/*cal/*" , "cal" ) ;
47 :     $kcal_u = CAPA_tex( "/*kcal/*" , "kcal" ) ;
48 :     $W_u = CAPA_tex( "/*W/*" , "W" ) ;
49 :     $kW_u = CAPA_tex( "/*kW/*" , "kW" ) ;
50 :     $Js_u = CAPA_tex( "/*J s/*" , "J s" ) ;
51 :     $C_u = CAPA_tex( "/*C/*" , "C" ) ;
52 :     $V_u = CAPA_tex( "/*V/*" , "V" ) ;
53 :     $ohm_u = CAPA_tex( "/*\Omega/*" , "ohm" ) ;
54 :     $F_u = CAPA_tex( "/*F/*" , "F" ) ;
55 :     $Wb_u = CAPA_tex( "/*Wb/*" , "Wb" ) ;
56 :     $H_u = CAPA_tex( "/*H/*" , "H" ) ;
57 :     $T_u = CAPA_tex( "/*T/*" , "T" ) ;
58 :     $N_u = CAPA_tex( "/*N/*" , "N" ) ;
59 :     $JPK_u = CAPA_tex( "/*J\over K/*" , "J/K" ) ;
60 :     $Nm2Pkg2_u = CAPA_tex( "/*Nm2\over kg^2/*" , "Nm^2/kg^2" ) ;
61 :     $kgPm3_u = CAPA_tex( "/*kg / m^3/*" , "kg/m3" ) ;
62 :     $gPm3_u = CAPA_tex( "/*g / m^3/*" , "g/m3" ) ;
63 :     $gPcm3_u = CAPA_tex( "/*g / cm^3/*" , "g/cm3" ) ;
64 :     $NPm_u = CAPA_tex( "/*N/m/*" , "N/m" ) ;
65 :     $kgm2_u = CAPA_tex( "/*kg\cdot m^2/*" , "kgm^2" ) ;
66 :     $deg_u = CAPA_tex( "/*^{\circ}/*" , "deg" ) ;
67 :     $rev_u = CAPA_tex( "/*rev/*" , "rev" ) ;
68 :     $rad_u = CAPA_tex( "/*rad/*" , "rad" ) ;
69 :     $G_u = CAPA_tex( "/*G/*" , "G" ) ;
70 :     $g_u = CAPA_tex( "/*g/*" , "g" ) ;
71 :     $h_u = CAPA_tex( "/*h/*" , "h" ) ;
72 :     $ton_u = CAPA_tex( "/*ton/*" , "ton" ) ;
73 :     $knots_u = CAPA_tex( "/*knots/*" , "knots" ) ;
74 :     $kgPs_u = CAPA_tex( "/*kg/s/*" , "kg/s" ) ;
75 :    
76 :     1;
77 :     #################################################
78 :     ## Processing time = 5 secs ( 4.60 usr 0.37 sys = 4.97 cpu)
79 :     #################################################

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9