2011-11-23 35 views
0

我有一個真正嚴重的楓樹問題,我無法讓它顯示矩陣可能。 當我輸入像<<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 = []) 

而且我也絕對不知道如何得到它顯示爲一個適當的矩陣,任何想法?

在此先感謝。

回答

1

您是否在某些配置文件中或在構建矩陣之前將相紙設置爲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.請參閱「界面」幫助頁面以獲取解釋。

+0

它幫了很多!非常感謝! :d –