A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-control.readthedocs.io/en/stable/generated/control.mag2db.html below:

control.mag2db — Python Control Systems Library 0.10.2 documentation

Python Control Systems Library

User Guide

Reference Manual

Python Control Systems Library control.mag2db
control.mag2db(mag)[source]

Convert a magnitude to decibels (dB).

If A is magnitude,

db = 20 * log10(A)

Parameters:
magfloat or ndarray

Input magnitude or array of magnitudes.

Returns:
dbfloat or ndarray

Corresponding values in decibels.

Examples

>>> ct.mag2db(10.0)                                         
20.0
>>> ct.mag2db(np.array([1, 0.01]))                          
array([  0., -40.])

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4