Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.5K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Need help with a double sum (indices)

Posted 10 years ago
POSTED BY: Tom Zinger
2 Replies
Posted 10 years ago

Hi, Tom!

something like this could work:

Sum[If[i > j, cs[i, j], 0], {i, 1, Floor[line]}, {j, 0, Floor[line] - i}]

or:

Sum[cs[i, j], {i, 1, Floor[line]}, {j, 0, Min[Floor[line] - i, i - 1]}]
POSTED BY: Sandu Ursu
Posted 10 years ago

Both ways work perfect, great thinking man, thank you for your assistance!

POSTED BY: Tom Zinger
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard