Shipping costs for Fourier Series and Orthogonal Polynomials