怎么操作Mathematica的数组列表

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

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

怎么操作Mathematica的数组列表

2、给出前100个正整数的列表:Range[100]

怎么操作Mathematica的数组列表

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

怎么操作Mathematica的数组列表

4、给出前50个正整数的倒序排列:Reverse@Range@50

怎么操作Mathematica的数组列表

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

怎么操作Mathematica的数组列表

6、绘制散点图:正整数从1增加到100,再减到1.x = Range@100;ListPlot[Join[x, Reverse@x]]

怎么操作Mathematica的数组列表

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

怎么操作Mathematica的数组列表

8、用简单的方法求代码 Reverse[Reverse[Range[10]]] 的运行结果:Range[10]

怎么操作Mathematica的数组列表

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

怎么操作Mathematica的数组列表

10、给出 Join[Range[10], Join[Ra艘绒庳焰nge[10], Range[5]]] 的运行结果:x = Range[10];y = Range[5];Join[x, x, y]

怎么操作Mathematica的数组列表

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

怎么操作Mathematica的数组列表

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

怎么操作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的数组列表
  • Mathematica编程入门:[1]循环_1
  • 如何使用mathematica进行矩阵的乘法运算?
  • Mathematica基础——循环和迭代
  • 如何在Mathematica 11中表示复无穷?
  • Matlab App Designer基本使用之旋钮
  • 热门搜索
    节约用纸的手抄报 趣味语文手抄报 安全教育手抄报大全 山水手抄报 56个民族手抄报 猜字谜手抄报 热爱祖国手抄报内容 关于名胜古迹的手抄报 防火手抄报内容 初一地理手抄报