clear all, clc;
x=0:1/8:1;
B=[2.6 2.08 1.72 1.45 1.26 1.13 1.04 0.97 0.92];
kanter=(B(1)+B(end))/2;
T1=1/8*(sum(B)-kanter)
T2=1/4*(sum(B(1:2:end))-kanter)
Ttak=T1+(T1-T2)/3
fel=abs((T1-T2)/3)