-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsi.h
166 lines (158 loc) · 7.34 KB
/
si.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#pragma once
#include "units.h"
namespace cunits {
// Length
static const Unit yottameter = 1E+24 * meter;
static const Unit zettameter = 1E+21 * meter;
static const Unit exameter = 1E+18 * meter;
static const Unit petameter = 1E+15 * meter;
static const Unit terameter = 1E+12 * meter;
static const Unit gigameter = 1E+9 * meter;
static const Unit megameter = 1E+6 * meter;
static const Unit kilometer = 1E+3 * meter;
static const Unit hectometer = 1E+2 * meter;
static const Unit decameter = 1E+1 * meter;
// meter
static const Unit decimeter = 1E-1 * meter;
static const Unit centimeter = 1E-2 * meter;
static const Unit millimeter = 1E-3 * meter;
static const Unit micrometer = 1E-6 * meter;
static const Unit nanometer = 1E-9 * meter;
static const Unit picometer = 1E-12 * meter;
static const Unit femtometer = 1E-15 * meter;
static const Unit attometer = 1E-18 * meter;
static const Unit zeptometer = 1E-21 * meter;
static const Unit yoctometer = 1E-24 * meter;
// Mass
static const Unit yottagram = 1E+21 * kilogram;
static const Unit zettagram = 1E+18 * kilogram;
static const Unit exagram = 1E+15 * kilogram;
static const Unit petagram = 1E+12 * kilogram;
static const Unit teragram = 1E+9 * kilogram;
static const Unit gigagram = 1E+6 * kilogram;
static const Unit megagram = 1E+3 * kilogram;
// kilogram
static const Unit hectogram = 1E-1 * kilogram;
static const Unit decagram = 1E-2 * kilogram;
static const Unit gram = 1E-3 * kilogram;
static const Unit decigram = 1E-4 * kilogram;
static const Unit centigram = 1E-5 * kilogram;
static const Unit milligram = 1E-6 * kilogram;
static const Unit microgram = 1E-9 * kilogram;
static const Unit nanogram = 1E-12 * kilogram;
static const Unit picogram = 1E-15 * kilogram;
static const Unit femtogram = 1E-18 * kilogram;
static const Unit attogram = 1E-21 * kilogram;
static const Unit zeptogram = 1E-24 * kilogram;
static const Unit yoctogram = 1E-27 * kilogram;
// Time
static const Unit yottasecond = 1E+24 * second;
static const Unit zettasecond = 1E+21 * second;
static const Unit exasecond = 1E+18 * second;
static const Unit petasecond = 1E+15 * second;
static const Unit terasecond = 1E+12 * second;
static const Unit gigasecond = 1E+9 * second;
static const Unit megasecond = 1E+6 * second;
static const Unit kilosecond = 1E+3 * second;
static const Unit hectosecond = 1E+2 * second;
static const Unit decasecond = 1E+1 * second;
// second
static const Unit decisecond = 1E-1 * second;
static const Unit centisecond = 1E-2 * second;
static const Unit millisecond = 1E-3 * second;
static const Unit microsecond = 1E-6 * second;
static const Unit nanosecond = 1E-9 * second;
static const Unit picosecond = 1E-12 * second;
static const Unit femtosecond = 1E-15 * second;
static const Unit attosecond = 1E-18 * second;
static const Unit zeptosecond = 1E-21 * second;
static const Unit yoctosecond = 1E-24 * second;
// Electric Current
static const Unit yottaampere = 1E+24 * ampere;
static const Unit zettaampere = 1E+21 * ampere;
static const Unit exaampere = 1E+18 * ampere;
static const Unit petaampere = 1E+15 * ampere;
static const Unit teraampere = 1E+12 * ampere;
static const Unit gigaampere = 1E+9 * ampere;
static const Unit megaampere = 1E+6 * ampere;
static const Unit kiloampere = 1E+3 * ampere;
static const Unit hectoampere = 1E+2 * ampere;
static const Unit decaampere = 1E+1 * ampere;
// ampere
static const Unit deciampere = 1E-1 * ampere;
static const Unit centiampere = 1E-2 * ampere;
static const Unit milliampere = 1E-3 * ampere;
static const Unit microampere = 1E-6 * ampere;
static const Unit nanoampere = 1E-9 * ampere;
static const Unit picoampere = 1E-12 * ampere;
static const Unit femtoampere = 1E-15 * ampere;
static const Unit attoampere = 1E-18 * ampere;
static const Unit zeptoampere = 1E-21 * ampere;
static const Unit yoctoampere = 1E-24 * ampere;
// Thermodynamic Temperature
static const Unit yottakelvin = 1E+24 * kelvin;
static const Unit zettakelvin = 1E+21 * kelvin;
static const Unit exakelvin = 1E+18 * kelvin;
static const Unit petakelvin = 1E+15 * kelvin;
static const Unit terakelvin = 1E+12 * kelvin;
static const Unit gigakelvin = 1E+9 * kelvin;
static const Unit megakelvin = 1E+6 * kelvin;
static const Unit kilokelvin = 1E+3 * kelvin;
static const Unit hectokelvin = 1E+2 * kelvin;
static const Unit decakelvin = 1E+1 * kelvin;
// kelvin
static const Unit decikelvin = 1E-1 * kelvin;
static const Unit centikelvin = 1E-2 * kelvin;
static const Unit millikelvin = 1E-3 * kelvin;
static const Unit microkelvin = 1E-6 * kelvin;
static const Unit nanokelvin = 1E-9 * kelvin;
static const Unit picokelvin = 1E-12 * kelvin;
static const Unit femtokelvin = 1E-15 * kelvin;
static const Unit attokelvin = 1E-18 * kelvin;
static const Unit zeptokelvin = 1E-21 * kelvin;
static const Unit yoctokelvin = 1E-24 * kelvin;
// Amount of Substance
static const Unit yottamole = 1E+24 * mole;
static const Unit zettamole = 1E+21 * mole;
static const Unit examole = 1E+18 * mole;
static const Unit petamole = 1E+15 * mole;
static const Unit teramole = 1E+12 * mole;
static const Unit gigamole = 1E+9 * mole;
static const Unit megamole = 1E+6 * mole;
static const Unit kilomole = 1E+3 * mole;
static const Unit hectomole = 1E+2 * mole;
static const Unit decamole = 1E+1 * mole;
// mole
static const Unit decimole = 1E-1 * mole;
static const Unit centimole = 1E-2 * mole;
static const Unit millimole = 1E-3 * mole;
static const Unit micromole = 1E-6 * mole;
static const Unit nanomole = 1E-9 * mole;
static const Unit picomole = 1E-12 * mole;
static const Unit femtomole = 1E-15 * mole;
static const Unit attomole = 1E-18 * mole;
static const Unit zeptomole = 1E-21 * mole;
static const Unit yoctomole = 1E-24 * mole;
// Luminous Intensity
static const Unit yottacandela = 1E+24 * candela;
static const Unit zettacandela = 1E+21 * candela;
static const Unit exacandela = 1E+18 * candela;
static const Unit petacandela = 1E+15 * candela;
static const Unit teracandela = 1E+12 * candela;
static const Unit gigacandela = 1E+9 * candela;
static const Unit megacandela = 1E+6 * candela;
static const Unit kilocandela = 1E+3 * candela;
static const Unit hectocandela = 1E+2 * candela;
static const Unit decacandela = 1E+1 * candela;
// candela
static const Unit decicandela = 1E-1 * candela;
static const Unit centicandela = 1E-2 * candela;
static const Unit millicandela = 1E-3 * candela;
static const Unit microcandela = 1E-6 * candela;
static const Unit nanocandela = 1E-9 * candela;
static const Unit picocandela = 1E-12 * candela;
static const Unit femtocandela = 1E-15 * candela;
static const Unit attocandela = 1E-18 * candela;
static const Unit zeptocandela = 1E-21 * candela;
static const Unit yoctocandela = 1E-24 * candela;
}