function s=targil3_trapez(a,b,n_segments)
%This function uses the trapez method to integrate my_func
%in the interval between a and b with n_segments

