网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

怎么操作Mathematica的数组列表

时间:2024-10-12 04:34:38

1、用Range给出列表 {1, 2, 3, 4} :Range[4]

怎么操作Mathematica的数组列表

3、给出列表 {4, 3, 2, 1} :Reverse@Range@4

怎么操作Mathematica的数组列表

5、给出列表{1,2,3,4,4,3,2,1}:x = Range@4Join[x, Reverse@x]

怎么操作Mathematica的数组列表

7、给出20个不大于10的随机正整数的列表:RandomInteger[{1, 10}, 20]

怎么操作Mathematica的数组列表

9、用简单的方法求代码 Join[{1, 2}, Join[{3, 4}, {5}]] 的运行结果:Range[5]

怎么操作Mathematica的数组列表

11、Reverse[Join[Range[20], Reverse[Range[20]]]] 运行结果:Join[Range[20], Reverse[Range[20]]]

怎么操作Mathematica的数组列表

13、给出列表 {3, 2, 1, 4, 3, 2, 1, 5, 4, 3, 2, 1}:Join[Flatten@Table[Reverse@Range [n], {n, {3, 4, 5}}]]

怎么操作Mathematica的数组列表
© 一点资料