function s=targil3_it_trapez(a,b,old_s,acc)
%This function uses the iterative trapez method to integrate my_func
%in the interval between a and b with n_segments until an accuracy of acc is reached
