<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_central_wave(wavl, resp):
 """Calculate the central wavelength or the central wavenumber, depending on what is input """

    return np.trapz(resp * wavl, wavl) / np.trapz(resp, wavl)