Skip to content

Instantly share code, notes, and snippets.

@bluebear94
Created March 22, 2019 03:48
Show Gist options
  • Save bluebear94/45d444be9a57bd40558eb0d0d863e30f to your computer and use it in GitHub Desktop.
Save bluebear94/45d444be9a57bd40558eb0d0d863e30f to your computer and use it in GitHub Desktop.
var('x')
r(x) = unit_step(x) - unit_step(x - 1)
rhalf(x) = 2 * r(2 * x)
var('t')
f(x) = integral(r(x - t) * rhalf(t), t, -infinity, infinity)
a(x) = f(x - 1/2)
var('y')
integrate(a(x) * integrate(a(y), y, 2 * x, infinity), x, -infinity, infinity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment