a[i] = intfun(x * cos(i * tmp), t, axis=-1)