Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.6K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Order the result of sum of different functions?

Hello there, How can I order the result of sum of different functions?I need to place these labels in ascending order of their specific numeric values.

POSTED BY: Rubens Quirino
Posted 4 years ago

Hi Rubens,

Here is one way

sorted = Table[{i, j, k, Subscript[E, x][i] + Subscript[E, y][j] + Subscript[E, z][k]},
  {i, 1, 3}, {j, 1, 2}, {k, 1, 4}] // 
    Flatten[#, 2] & // SortBy[Last]

Print[Subscript[E, #[[1]], #[[2]], #[[3]]], " = ", #[[4]]] & /@ sorted
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard