source: trunk/src/core/RpUnitsStd.h @ 1386

Last change on this file since 1386 was 999, checked in by dkearney, 17 years ago

added changelog file to more easily track changes for each version of the software
added bohr units and conversion to meters.

File size: 3.7 KB
Line 
1/*
2 * ======================================================================
3 *  Copyright (c) 2004-2005  Purdue Research Foundation
4 *
5 *  See the file "license.terms" for information on usage and
6 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7 * ======================================================================
8 */
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14double invert (double inVal);
15
16double deci2base (double deci);
17double centi2base (double centi);
18double milli2base (double milli);
19double micro2base (double micro);
20double nano2base (double nano);
21double pico2base (double pico);
22double femto2base (double femto);
23double atto2base (double atto);
24
25double deca2base (double deca);
26double hecto2base (double hecto);
27double kilo2base (double kilo);
28double mega2base (double mega);
29double giga2base (double giga);
30double tera2base (double tera);
31double peta2base (double peta);
32double exa2base (double exa);
33
34
35
36double base2deci (double base);
37double base2centi (double base);
38double base2milli (double base);
39double base2micro (double base);
40double base2nano (double base);
41double base2pico (double base);
42double base2femto (double base);
43double base2atto (double base);
44
45double base2deca (double base);
46double base2hecto (double base);
47double base2kilo (double base);
48double base2mega (double base);
49double base2giga (double base);
50double base2tera (double base);
51double base2peta (double base);
52double base2exa (double base);
53
54
55
56double angstrom2meter (double angstrom);
57double meter2angstrom (double meter);
58double bohr2meter (double bohr);
59double meter2bohr (double meter);
60double meter2inch (double meter);
61double inch2meter (double inch);
62double inch2feet (double inch);
63double feet2inch (double ft);
64double inch2yard (double inch);
65double yard2inch (double yd);
66double inch2mile (double inch);
67double mile2inch (double yd);
68
69
70
71
72double fahrenheit2centigrade (double F);
73double centigrade2fahrenheit (double C);
74double centigrade2kelvin (double C);
75double kelvin2centigrade (double K);
76double rankine2kelvin (double R);
77double kelvin2rankine (double K);
78double fahrenheit2kelvin (double F);
79double kelvin2fahrenheit (double K);
80double fahrenheit2rankine (double F);
81double rankine2fahrenheit (double R);
82double rankine2celcius (double R);
83double celcius2rankine (double C);
84
85
86
87double electronVolt2joule (double eV);
88double joule2electronVolt (double J);
89
90
91
92
93double cubicMeter2usGallon (double m3);
94double usGallon2cubicMeter (double gal);
95double cubicFeet2usGallon (double ft3);
96double usGallon2cubicFeet (double gal);
97double cubicMeter2liter (double m3);
98double liter2cubicMeter (double L);
99
100
101double rad2deg  (double rad);
102double deg2rad  (double deg);
103double rad2grad (double rad);
104double grad2rad (double grad);
105double deg2grad (double deg);
106double grad2deg (double grad);
107
108
109
110double sec2min    (double sec);
111double min2sec    (double min);
112double sec2hour   (double sec);
113double hour2sec   (double hour);
114double sec2day (double sec);
115double day2sec (double day);
116
117
118
119
120double bar2Pa (double bar);
121double Pa2bar (double Pa);
122double bar2atm (double bar);
123double atm2bar (double atm);
124double bar2torr (double bar);
125double torr2bar (double torr);
126double bar2psi (double bar);
127double psi2bar (double psi);
128double Pa2atm (double Pa);
129double atm2Pa (double atm);
130double Pa2torr (double Pa);
131double torr2Pa (double torr);
132double Pa2psi (double Pa);
133double psi2Pa (double psi);
134double torr2atm (double torr);
135double atm2torr (double atm);
136double torr2psi (double torr);
137double psi2torr (double psi);
138double torr2mmHg (double torr);
139double mmHg2torr (double mmHg);
140double psi2atm (double psi);
141double atm2psi (double atm);
142
143
144
145double pH2pOH (double pH);
146double pOH2pH (double pOH);
147
148#ifdef __cplusplus
149}
150#endif
Note: See TracBrowser for help on using the repository browser.