Fixed order of arguments in trapz()