Skip to content

Commit 7cb7bfb

Browse files
committed
Add the unit 'Foe'
1 parent 5d62b7a commit 7cb7bfb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

book/src/prelude/list-units.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ and — where sensible — units allow for [binary prefixes](https://en.wikipedi
4848
| `Energy` | [Calorie](https://en.wikipedia.org/wiki/Calorie) | `cal`, `calorie`, `calories` |
4949
| `Energy` | [Electron volt](https://en.wikipedia.org/wiki/Electronvolt) | `electronvolt`, `electronvolts`, `eV` |
5050
| `Energy` | [Erg](https://en.wikipedia.org/wiki/Erg) | `erg`, `ergs` |
51+
| `Energy` | [Foe](https://en.wikipedia.org/wiki/Foe_(unit)) | `foe` <br/> (`use extra::astronomy`) |
5152
| `Energy` | [Hartree](https://en.wikipedia.org/wiki/Hartree) | `hartree`, `hartrees` <br/> (`use units::hartree`) |
5253
| `Energy` | [Joule](https://en.wikipedia.org/wiki/Joule) | `J`, `joule`, `joules` |
5354
| `Energy` | [Planck energy](https://en.wikipedia.org/wiki/Planck_energy) | `planck_energy` |

numbat/modules/extra/astronomy.nbt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use physics::constants
22
use units::si
33
use units::time
44
use units::astronomical
5+
use units::cgs
56

67
@name("Light-second")
78
@description("The distance that light travels in one second.")
@@ -114,3 +115,8 @@ unit jansky: SpectralFluxDensity = 1e-26 W / m^2 / Hz
114115
@url("https://en.wikipedia.org/wiki/Solar_flux_unit")
115116
@aliases(solarfluxunits, sfu: short)
116117
unit solarfluxunit: SpectralFluxDensity = 1e4 Jy
118+
119+
@name("Foe")
120+
@description("A unit of energy equal to 10⁵¹ ergs. Used to express the energy released by supernovae. The word is an acronym derived from '(ten to the power of) fifty-one ergs'.")
121+
@url("https://en.wikipedia.org/wiki/Foe_(unit)")
122+
unit foe: Energy = 1e51 erg

0 commit comments

Comments
 (0)