# Shifting the domain of an interpolated function

If I interpolate a list

 f=ListInterpolation[{1,2,3,4,5,6,7}]


the result is in the domain {{1,7}}, so something like f[8] will be out of scope.

How can I shift the domain, say from 1,7 to 8,15?

f = ListInterpolation[{1, 2, 3, 4, 5, 6, 7}]

• Or to get a periodic function: g[x_] := Mod[x, 7] /. (0 -> 7) Jul 4 '18 at 14:35
• @BobHanlon If one is aiming for periodicity, there is the PeriodicInterpolation option Jul 4 '18 at 15:14
• @LukasLang - if you try that option you will encounter the error ListInterpolation::per : In dimension 1 the data at the endpoints of the fundamental period are not equal. Jul 4 '18 at 15:17