int_nmr function

Integration function