Add the fitting of the tail to W;
Change the 积分区间 to (0, floor(L/2))
change the basis of the tail