您是否在某些配置文件中或在構建矩陣之前將相紙設置爲0?請注意以下幾點:
> interface(prettyprint=0);
1
> <<4,2>|<2,4>>;
Matrix(2,2,{(1, 1) = 4, (1, 2) = 2, (2, 1) = 2, (2, 2) = 4},datatype =
anything,storage = rectangular,order = Fortran_order,shape = [])
> interface(prettyprint=1);
0
> <<4,2>|<2,4>>;
[4 2]
[ ]
[2 4]
打印Matrix(...)表示的另一種方法是使用lprint。你不需要使用lprint,除非你想檢查矩陣內嵌圖的表示:
> lprint(<<4,2>|<2,4>>);
Matrix(2,2,{(1, 1) = 4, (1, 2) = 2, (2, 1) = 2, (2, 2) = 4},datatype =
anything,storage = rectangular,order = Fortran_order,shape = [])
希望這有助於。
編輯(2011年11月24日): 我的例子是基於命令行楓樹。如果您使用的是Maple的GUI版本,最好將相紙的默認值設置爲3.請參閱「界面」幫助頁面以獲取解釋。
它幫了很多!非常感謝! :d –