I have the following method that returns 0 in a certain case:
function Q_r(i::Number, l::Number, r::Number, tau::Float64) if i >= r || l >= r