From e7383f03979ad5670b92f40cda120df3599728dd Mon Sep 17 00:00:00 2001 From: ksunden Date: Wed, 25 Jul 2018 00:17:46 -0500 Subject: [PATCH] Add spatial frequency to places where spectral equivalence is mentioned --- docs/usage.rst | 5 +++-- unyt/array.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index 4747fb90..57254a24 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -450,7 +450,8 @@ for the problem you are working on. The :mod:`unyt` library implements the following equivalencies: * "thermal": conversions between temperature and energy (:math:`E = k_BT`) -* "spectral": conversions between wavelength, frequency, and energy for photons +* "spectral": conversions between wavelength, spatial frequency, frequency, and + energy for photons (:math:`E = h\nu = hc/\lambda`, :math:`c = \lambda\nu`) * "mass_energy": conversions between mass and energy (:math:`E = mc^2`) * "lorentz": conversions between velocity and Lorentz factor @@ -471,7 +472,7 @@ array, use the :meth:`unit_array.list_equivalencies schwarzschild: mass <-> length compton: mass <-> length >>> km.list_equivalencies() - spectral: length <-> frequency <-> energy + spectral: length <-> spatial_frequency <-> frequency <-> energy schwarzschild: mass <-> length compton: mass <-> length diff --git a/unyt/array.py b/unyt/array.py index 23fb31a2..915a3ba9 100644 --- a/unyt/array.py +++ b/unyt/array.py @@ -1022,7 +1022,7 @@ def list_equivalencies(self): ------- >>> from unyt import km >>> (1.0*km).list_equivalencies() - spectral: length <-> frequency <-> energy + spectral: length <-> spatial_frequency <-> frequency <-> energy schwarzschild: mass <-> length compton: mass <-> length """