Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. f[x_] := Piecewise[{{1, 0 < x < 1/2 || 1 < x < 3/2}, {0, false}}]
  2. ExpectedValue=Integrate[x f[x], {x, -Infinity, Infinity}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement