summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorsignor82 <Giorgio.Signorello@imec.be>2020-08-25 11:58:04 +0200
committersignor82 <Giorgio.Signorello@imec.be>2020-08-25 11:58:04 +0200
commitef28ffcc5fbe8aae9d86d0a16a522b746bff9d0e (patch)
tree8329bbe2624d35d6413467906b70dec4b923c199 /docs
parent5ee438a9777a74f486801d72a9e40a8b1de51bd4 (diff)
downloadpint-ef28ffcc5fbe8aae9d86d0a16a522b746bff9d0e.tar.gz
Corrects typo: decibel, not decibell (as pointed out by @terikin)
Diffstat (limited to 'docs')
-rw-r--r--docs/log_units.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/log_units.rst b/docs/log_units.rst
index d2d4602..03e0079 100644
--- a/docs/log_units.rst
+++ b/docs/log_units.rst
@@ -44,11 +44,11 @@ you can define simple logarithmic quantities like most others:
.. doctest::
>>> 20.0 * ureg.dBm
- <Quantity(20.0, 'decibellmilliwatt')>
+ <Quantity(20.0, 'decibelmilliwatt')>
>>> ureg('20.0 dBm')
- <Quantity(20.0, 'decibellmilliwatt')>
+ <Quantity(20.0, 'decibelmilliwatt')>
>>> ureg('20 dB')
- <Quantity(20, 'decibell')>
+ <Quantity(20, 'decibel')>
Converting to and from base units
@@ -76,7 +76,7 @@ Convert back from a base unit to a logarithmic unit using the `.to()` method:
.. doctest::
>>> (100.0 * ureg('mW')).to('dBm')
- <Quantity(20.0, 'decibellmilliwatt')>
+ <Quantity(20.0, 'decibelmilliwatt')>
>>> shift = Q_(4, '')
>>> shift
<Quantity(4, 'dimensionless')>
@@ -101,7 +101,7 @@ example of computing RMS noise from a noise density and a bandwidth:
>>> bandwidth = 10.0 * ureg.kHz
>>> noise_power = noise_density * bandwidth
>>> noise_power.to('dBm')
- <Quantity(-121.0, 'decibellmilliwatt')>
+ <Quantity(-121.0, 'decibelmilliwatt')>
>>> noise_power.to('mW')
<Quantity(7.94328235e-13, 'milliwatt')>