-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
# SimpleConstants | ||
|
||
**SimpleConstants** defines the values of some fundamental constants of physics in SI units. [PhysicalConstants](https://github.com/JuliaPhysics/PhysicalConstants.jl) provides a complete set of fundamental constants with units, but in many cases of writing scientific code we care only about the values of the fundamental constants without units. SimpleConstants is a lightweight package defining those values. | ||
|
||
SimpleConstants utilizes Unicode symbols as much as possible to define compact symbols to store the fundamental constants (e.g., `ε₀` instead of `eps_0` or `ε_0`). It further promotes compactness by defining _compound constants_ that are products of fundamental constants that frequently appear in equations. For example, | ||
- the package defines `πc₀ = π * c₀`, with which the angular frequency of an electromagnetic wave of wavelength `λ` can be written `ω = 2πc₀ / λ` instead of `ω = 2π * c₀ / λ`; | ||
- the package defines `i2π = im * 2π`, with which the complex exponential of an angle 120° can be written `exp(i2π/3)` instead of `exp(im * 2π / 3)`; | ||
etc. | ||
|
||
SimpleConstants also defines all the SI prefixes (e.g., `kilo` and `milli`). [Unitful](https://github.com/PainterQubits/Unitful.jl) provides a complete set of those prefixes together with other units, but again, SimpleConstants is a lightweight package defining those prefixes. |