using wolfram i got something like this -
compute triple summation for my homework
1 次查看(过去 30 天)
显示 更早的评论
hello guys
I have need to compute the following summation for my homework. Any hint or pseudo code would be helpful. Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156455/image.png)
Edit - "p" is a vector containing numbers and p(x) refers to the element position in that vector and "y" is a symbol
采纳的回答
Walter Roberson
2016-9-19
Since y is a symbol, you will need to use the Symbolic Toolbox.
You might be tempted to use symsum() for this, but symsum has the limitation that symbolic variables cannot be used for indexing of arrays.
So... ndgrid, calculate the formula for each point, and then sum() along the dimensions until you get a scalar result.
5 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!