Tagged Questions
5
votes
5answers
197 views
Performing Computations on Sets
I would like to find the permutation of $S=\{\frac{1}{10}, \frac{1}{2}, \frac{4}{7}, \frac{3}{5}, \frac{2}{3} \}$ that maximizes the sum of theses elements raised to unique powers $\{0,1,2,3,4\}$. I ...
3
votes
3answers
220 views
How to sum over a List
list = {11.5575, 11.397, 5.52734, 4.0878, 2.54815, 1.86652, 2.55028,
2.14952, 1.6242, 1.34117}
I have a list of numbers. How do I make a function that creates a ...
5
votes
1answer
160 views
Problem with creating a large list of tuples
This is a follow-up question from Sum of Multinomial Coefficients
I have thought about the meaning of the formula I mentioned and, with help, I implemented the following code:
...
3
votes
3answers
214 views
Sum of Multinomial Coefficients
Basically, I want to write a function to compute the following sum
$f(m,L):=\sum_{0\leq k_1,\cdots, k_n\leq m} \binom{m}{k_1,k_2,\cdots k_n}$ and $\mathrm{supp}(k)=L \subseteq \left \{ 1,...,n \right ...
5
votes
3answers
361 views
Ways to compute inner products of tensors
One way to evaluate the following sums is combining Table and Sum:
$u_{abcd} = \sum_{e=1}^3 v_{aeb}w_{ced}$
$q_{ab} = \sum_{d,e=1}^3 v_{d e a}w_{deb}$
It will look like
...
