伏特到 dBµV 在线计算器和 Python 代码

使用此在线计算器将以伏特为单位的电压转换为以 dBµV 为单位的电压。

另请参见dBµV 到伏特在线计算器和 Python 代码

TechOverflow calculators:
You can enter values with SI suffixes like 12.2m (equivalent to 0.012) or 14k (14000) or 32u (0.000032).
The results are calculated while you type and shown directly below the calculator, so there is no need to press return or click on a Calculate button.
V

公式:

$$U_{\text{dBµV}} = \frac{20\cdot\log(1\,000\,000 \cdot U_V)}{ \log(2) + \log(5)}$$

Python 代码:

volts_to_dbv_converter.py
import math
def volts_to_dbuv(v):
    """将以伏特为单位的电压转换为以 dBµV 为单位的电压"""
    return (20*math.log(1e6 * v))/(math.log(2) + math.log(5))

Check out similar posts by category: Calculators, Electronics