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
9393also access this as ` Units.kPa ` . You may like to define
9494
9595``` julia
96- julia> const U = Units; const C = Constants;
96+ julia> const U = Units
9797```
9898
9999so that you can simply write, say, ` U.kPa ` or ` C.m_e ` .
@@ -178,17 +178,23 @@ julia> Constants.c
1781782.99792458e8 m s⁻¹
179179```
180180
181+ which you may like to define as
182+
183+ ``` julia
184+ julia> const C = Constants
185+ ```
186+
181187These can also be used inside the ` u"..." ` macro:
182188
183189``` julia
184190julia> u " Constants.c * Hz"
1851912.99792458e8 m s⁻²
186192```
187193
188- Similarly, you can just import these :
194+ Similarly, you can just import each individual constant :
189195
190196``` julia
191- julia> using DynamicQuantities. Constants: c
197+ julia> using DynamicQuantities. Constants: h
192198```
193199
194200For 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