Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias alias alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore CompareNotEq NameLoad Num Assign SubscriptStore NameLoad Index NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Return Call NameLoad NameLoad NameLoad decorator_list
N/A N/A This module provides the dbv() function, used to convert a voltage gain to dB.
 N/A numpy np _undbv undbv _utils carray restore_input_form save_input_form dbv N/A N/A x N/A N/A N/A Calculate the dB equivalent of the voltage ratio ``x``.

    .. math::

        G_{dB} = 20 \mathrm{log}_{10}(|x|)

    **Parameters:**

    x : scalar or sequence
        The voltage (ratio) to be converted.

    **Returns:**

    GdB : scalar or sequence
        The input voltage (ratio) expressed in dB.

    .. seealso:: :func:`undbv`, :func:`db`, :func:`dbp`, :func:`dbm`

     N/A iform N/A save_input_form x N/A x N/A carray x N/A y N/A N/A N/A np inf N/A N/A np ones N/A x shape N/A nonzero N/A x 0 N/A N/A y N/A nonzero N/A 20.0 N/A N/A np log10 N/A N/A np abs N/A x N/A nonzero N/A N/A restore_input_form y iform N/A