<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def f_ac_power(inverter, v_mp, p_mp):
 """ Calculate AC power :param inverter: :param v_mp: :param p_mp: :return: AC power [W] """

    return pvlib.pvsystem.snlinverter(v_mp, p_mp, inverter).flatten()