6,400 reputation
1424
bio website
location
age
visits member for 1 year, 11 months
seen 11 mins ago

Jul
10
comment Random numbers that sum up to specific value
I found the issue, you want RandomChoice instead of RandomSample. With sample you can only get zeros at the ends.
Jul
10
comment Random numbers that sum up to specific value
This dis-favors results with zeros for some reason compared to the brute force result (It is dramatically faster than my solution though )
Jul
10
revised Random numbers that sum up to specific value
deleted 2 characters in body
Jul
10
revised Random numbers that sum up to specific value
added 155 characters in body
Jul
10
revised Random numbers that sum up to specific value
added 885 characters in body
Jul
10
revised Random numbers that sum up to specific value
added 885 characters in body
Jul
10
revised Random numbers that sum up to specific value
added 885 characters in body
Jul
10
revised Random numbers that sum up to specific value
added 885 characters in body
Jul
10
answered Random numbers that sum up to specific value
Jul
10
comment Random numbers that sum up to specific value
i'm pretty sure an integer partition with repeated values should occur less frequently than one with all unique values (obviously depending on the definition of random).
Jul
10
comment Random numbers that sum up to specific value
note there is a pretty challenging question of what exactly do you mean by random.
Jul
10
comment Random numbers that sum up to specific value
addressing only what is wrong with your loop, x is initially undefind, thus not 28, so you never enter the loop. You want While[Total@x=!=28,x = RandomInteger[{0, 28}, 5]];Print[x]; (note the print now outside the loop)
Jul
9
comment Plot the results of integrating a complicated Dirac-delta function
i did too, somewhere in the edit trail he threw in a factor of 10 ..
Jul
9
revised Replace interior of matrix with zeros
added 207 characters in body
Jul
9
answered Replace interior of matrix with zeros
Jul
9
comment Integral over geometric region
uh.. you've reversed {y,z} in the region and integral.. (and I cut paste the error ) Fix that and it works (add y>0 to the region to get 1/12 )
Jul
9
comment Integral over geometric region
Your hand result is correct for y>0 . Note you have a mirrored region ( y<0 ) which cancels so the result should be zero.
Jul
9
revised Plot the results of integrating a complicated Dirac-delta function
deleted 10 characters in body
Jul
9
revised Plot the results of integrating a complicated Dirac-delta function
added 665 characters in body
Jul
8
revised Plot the results of integrating a complicated Dirac-delta function
added 21 characters in body