function A_p_dB=gain_in_decibel_power(A_p) A_p_dB=10*log10(A_p) endfunction