Thanks pasmith, looks great. One question: Is it always valid to take the limit of the two R:s in the last integral simultaneously? What I mean is that in the integral ##\int_0^{\infty } \left(\int_x^{\infty } f(y) \, dy\right) \, dx## it seems like the two infinities are 'separate'. In your...