rainer
Reputation
241
Next privilege 250 Rep.
 Mar 5 comment Problem with creating a large list of tuples Thanks! I edited my code and tried to create the tuples "on the fly" but for let's say for Tuples[Range[0,20],19] I loop through all possible Tuples. But there are approx. 19^20 Tuples and mathematica can't handle such a large number. Is there any other way? Mar 2 comment Problem with creating a large list of tuples Thank you. Truly nice performance improvement! For the code to work for large n, I think I need to think about an iterative approach Mar 2 comment Problem with creating a large list of tuples @jVincent Thanks for the Link. But do I miss something, because I tried the first code in your answer but that it did not work. Mar 1 asked Problem with creating a large list of tuples Feb 24 awarded Enthusiast Feb 16 accepted Sum of Multinomial Coefficients Feb 15 comment Sum of Multinomial Coefficients No unfortunately not. Its my job to do de computation and provide numerical examples. The only "external" information is that i am given the number $m$ and that $L\subseteq \{1,...,n\}$.I think I'll need to think it through once more, maybe I'll understand what's meant then. Feb 15 comment Sum of Multinomial Coefficients I does not make sense to me either, until now I haven't seen such an expression. These sum is an input into another function. I wrote down exactly how it is formulated in the paper. I'm sorry Feb 15 revised Sum of Multinomial Coefficients added 45 characters in body Feb 15 comment Sum of Multinomial Coefficients Thank you. But it's actually more complicated. I'm still not 100% sure if i got how one calculates the sum. I updated my question. I think it means that if $L=(1,2,4,5)$ that the third element can be zero. I'm sorry I haven't seen such a notation. Feb 15 revised Sum of Multinomial Coefficients added 16 characters in body Feb 15 comment Sum of Multinomial Coefficients thank you, I also do need a variation of that. Do you have an idea how to get only that coefficients where $k_i$ is not 0. In your example above it would be just the last term $\binom{5}{1\ 1\ 1\ 2}$? Feb 14 awarded Commentator Feb 14 comment Sum of Multinomial Coefficients I'm so sorry I didnt saw that you wrote an answer! I wouldnt have deleted the question. I figured out the same solution as you posted myself. Anyway I'll keep the question! I apologize once more! Feb 14 asked Sum of Multinomial Coefficients Feb 12 comment Speed up Numerical Integration thank you all very much, I figured out how i could optimize my integration, but i have one last point. I have to Integrations the first I need to use "normal" Integrate and in the second one NIntegrate. I can't use NIntegrate in the first because there are still variables in the output . Is it possible to speed that further up? I have no assumptions to make to the function. Feb 12 comment Get unique values for integration limits Thanks, but I also need to remove the unnecessary sublists of x1,x2,x3. I just want the first sublist for x1, second one for x2,... Feb 12 asked Get unique values for integration limits Feb 10 comment Finding an index with certain conditions Thanks, I figured out how to do it with your first solution! Feb 10 accepted Finding an index with certain conditions