using Interpolations
gridx = 0:7
gridy = 10:19
fun(a,b) = sin(b) + 0.1a^2
y = [fun.(a,b) for a in gridx, b in gridy]
testfun=LinearInterpolation((collect(gridx),collect(gridy)), y)
@show testfun(5,15), fun(5,15),testfun(5.5,15),fun(5.5,15)
using Interpolations
gridx = 0:7
gridy = 10:19
fun(a,b) = sin(b) + 0.1a^2
y = [fun.(a,b) for a in gridx, b in gridy]
testfun=LinearInterpolation((collect(gridx),collect(gridy)), y)
@show testfun(5,15), fun(5,15),testfun(5.5,15),fun(5.5,15)