import numpy as np
from scipy.fftpack import dct,idct
print(idct(np.array([4., 3., 5., 10., 5., 3.])))