(regesm) : function for integral calculation is added.