myPDF[]=ProbabilityDistribution[2(1-1/x^2),{x,1,2}];
Is that an array construct?
]]>I meant the size of the whole package..
]]>It is light in m too.
]]>You can post it and thanks for doing so.
]]>Hope you don't mind replying to old ones, I'll post code whichever I'll be able to come up with!
J:
samp=:1000000
f=:1+?samp$0
fx=:2*(1-%f^2)
(+/%#)f*fx
≈1.61407
]]>Solve the equation
for x. You get 2 solutions:
I used the second one.
]]>Yes, it is. But what range should I have for y?
]]>