added demos for integral calculation
fixed n domain not only integer