题目:写一个用矩形法求定积分的通用函数,分别求 ∫ 0 1 s i n ( x ) d x \int_0^1 sin(x)dx\, ∫01sin(x)dx、 ∫ − 1 1 c o s ( x ) d x \int_{-1}^1 cos(x)dx\, ∫−