【问题标题】:Maple matrix displays as raw text枫矩阵显示为原始文本
【发布时间】:2011-11-23 15:58:23
【问题描述】:

我对枫木有一个非常严重的问题,我可能无法让它显示矩阵。 当我输入像<<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 = [])

我完全不知道如何让它显示为适当的矩阵,有什么想法吗?

提前致谢。

【问题讨论】:

    标签: matrix maple


    【解决方案1】:

    您是否在某个配置文件中或在构建矩阵之前将 prettyprint 设置为 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。除非您想检查 Matrix internallay 的表示,否则您不需要使用 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。如果您使用的是 Maple 的 GUI 版本,最好将 prettyprint 的默认值设置为 3。有关说明,请参见“界面”帮助页面。

    【讨论】:

    • 帮助很大!非常感谢! :D
    猜你喜欢
    • 1970-01-01
    • 2022-01-23
    • 1970-01-01
    • 2015-07-13
    • 2022-07-06
    • 2012-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多