File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ julia> room_temp = 100kPa
89
89
100000.0 m⁻¹ kg s⁻²
90
90
```
91
91
92
+ Note that ` Units ` is an exported submodule, so you can
93
+ also access this as ` Units.kPa ` .
94
+
92
95
This supports a wide range of SI base and derived units, with common
93
96
prefixes.
94
97
@@ -176,6 +179,12 @@ julia> u"Constants.c * Hz"
176
179
2.99792458e8 m s⁻²
177
180
```
178
181
182
+ Similarly, you can just import these:
183
+
184
+ ``` julia
185
+ julia> using DynamicQuantities. Constants: c
186
+ ```
187
+
179
188
For the full list, see the [ docs] ( https://symbolicml.org/DynamicQuantities.jl/dev/constants/ ) .
180
189
181
190
@@ -220,6 +229,23 @@ julia> uconvert(us"nm", 5e-9u"m") # can also write 5e-9u"m" |> uconvert(us"nm")
220
229
5.0 nm
221
230
```
222
231
232
+ Finally, you can also import these directly:
233
+
234
+ ``` julia
235
+ julia> using DynamicQuantities. SymbolicUnits: cm
236
+ ```
237
+
238
+ or constants:
239
+
240
+ ``` julia
241
+ julia> using DynamicQuantities. SymbolicConstants: h
242
+ ```
243
+
244
+ Note that ` SymbolicUnits ` and ` SymbolicConstants ` are exported,
245
+ so you can simply access these as ` SymbolicUnits.cm ` and ` SymbolicConstants.h ` ,
246
+ respectively.
247
+
248
+
223
249
### Arrays
224
250
225
251
For working with an array of quantities that have the same dimensions,
You can’t perform that action at this time.
0 commit comments