File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ Note that `Units` is an exported submodule, so you can
93
93
also access this as ` Units.kPa ` . You may like to define
94
94
95
95
``` julia
96
- julia> const U = Units; const C = Constants;
96
+ julia> const U = Units
97
97
```
98
98
99
99
so that you can simply write, say, ` U.kPa ` or ` C.m_e ` .
@@ -178,17 +178,23 @@ julia> Constants.c
178
178
2.99792458e8 m s⁻¹
179
179
```
180
180
181
+ which you may like to define as
182
+
183
+ ``` julia
184
+ julia> const C = Constants
185
+ ```
186
+
181
187
These can also be used inside the ` u"..." ` macro:
182
188
183
189
``` julia
184
190
julia> u " Constants.c * Hz"
185
191
2.99792458e8 m s⁻²
186
192
```
187
193
188
- Similarly, you can just import these :
194
+ Similarly, you can just import each individual constant :
189
195
190
196
``` julia
191
- julia> using DynamicQuantities. Constants: c
197
+ julia> using DynamicQuantities. Constants: h
192
198
```
193
199
194
200
For the full list, see the [ docs] ( https://symbolicml.org/DynamicQuantities.jl/dev/constants/ ) .
You can’t perform that action at this time.
0 commit comments