Hello to everybody. I try to understand Wolfram Mathematica.
I have list of variables and their values.
a=5, b=6, c=6, d=2
I have to compare them to find maximum and print only the names of variables with text. There is two maximum options (b and c).
For example: “You have to choose b,c”
I know how to compare but I find only the value of variables.
m = {a = 5, b = 6, c = 6, d = 2}; Max[m]
I see the code is not right for the task.
How to compare the values of variables and print only the names of variables with the text?
Can you explain me your code with comments? I want to understand.
Finally you split the list t1 into sublists which identical values and since they are already ordered according to the size of the value, you take the first member:
Hello Michael,
Thank you very much.
I have two questions. 1) I calculate a, b, c, d. For example a=10+8-13=5 and etc.
Is it possible transform a = 5, b = 6, c = 6, d = 2 into m = {{a, 5}, {b, 6}, {c, 6}, {d, 2}}?
I find this way: