Convert a gain in decibels (dB) to a magnitude
If A is magnitude,
db = 20 * log10(A)
db : float or ndarray
input value or array of values, given in decibels
mag : float or ndarray
corresponding magnitudes