Spectral method for multidimensional Volterra integral equation with regular kernel