如何用mathematica求列表中前 n 大的元素
1、打开mathematica11,点击【新建笔记本】

3、在命令行中,输入list = {3, 2, 1, 190, 8, 4, 67, 89, 81},然后按Enter+Shift

5、求解前5大元素:在命令行中,输入TakeLargest[list, 5],然后按Enter+Shift

1、打开mathematica11,点击【新建笔记本】
3、在命令行中,输入list = {3, 2, 1, 190, 8, 4, 67, 89, 81},然后按Enter+Shift
5、求解前5大元素:在命令行中,输入TakeLargest[list, 5],然后按Enter+Shift