Skip to content

Commit

Permalink
add Dalton as a unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Jul 25, 2024
1 parent 31121b8 commit d4549dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/unchained/si_units.nim
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ declareUnits:
quantity: Length
conversion: 30856775814913673.0.m # 1 AU * 180° * 60 * 60 / π

Dalton: # unified atomic mass, m_u = 1/12 m(¹²C) = 1 Da.
short: Da
quantity: Mass
conversion: 1.66053906892e-27.kg # 1.66053906892(52)×10−27

# given that we have base units & derived base units defined, we can now just
# dump everything together. Everything that is referenced before, can now be
# used to define new units.
Expand Down

0 comments on commit d4549dd

Please sign in to comment.