Skip to content

Instantly share code, notes, and snippets.

Created November 10, 2016 21:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/2da3080f3594a81f6a8620194d5529d3 to your computer and use it in GitHub Desktop.
ys = [a[0] * b[0]]
multiplier = exp(k)
for t in 1:T
y = ys[-1] * multiplier
for i in 0:(t-1)
y += b[t] * a[i]
y += a[t] * b[i]
y += a[t] * b[t]
ys.push(y)
return ys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment