A method for evaluating the electron-phonon coupling in cuprates from heat capacity measurements