fork/numbat

git clone https://git.julia.blue/fork/numbat

David PeterMove Planck length/mass/… to actual unitsdcf94e8

v1.6.0
424 B18 linesraw
1# https://en.wikipedia.org/wiki/Planck_units
2
3use physics::constants
4
5# Planck length
6unit planck_length: Length = sqrt(ℏ G / c^3) -> m
7
8# Planck mass
9unit planck_mass: Mass = sqrt(ℏ c / G) -> kg
10
11# Planck time
12unit planck_time: Time = sqrt(ℏ G / c^5) -> s
13
14# Planck temperature
15unit planck_temperature: Temperature = sqrt(ℏ c^5 / (G k_B^2)) -> K
16
17# Planck energy
18unit planck_energy: Energy = sqrt(ℏ c^5 / G) -> J