Maple 13 变量赋值不起作用
Please refer to the screenshot.
I assigned Qswap to a matrix and when I try to view Qswap, it has nothing assigned to it!
Help will be appreciated =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
swapcol 命令来自 linalg 包,它适用于矩阵和/或向量。请注意
matrix
和vector
中缺少大写。Maple 中的矩阵是一个对象,它具有所谓的“last_name_eval”规则来进行求值。请参阅last_name_eval 帮助页面。因此,当您仅输入名称时,您返回的只是该名称。您可以使用 evalm、eval 或 print 命令查看分配给该名称的基础数组。例如,
现在,linalg 包在 Maple 13 中已正式弃用。建议的替代品是 LinearAlgebra 包(十年前在 Maple 6 中引入)。 LinearAlgebra 包适用于矩阵或向量(不是大写)。与矩阵和向量相比,矩阵和向量对象没有last_name_eval。例如,
最后一件事。默认情况下,只有大小 <11 的矩阵和向量才会显式显示其内容。您可以使用尺寸为 50 的新截止值进行调整,例如,
The swapcol command is from the linalg package, which works with a matrix and/or a vector. Note the lack of capitalization in
matrix
andvector
.A
matrix
in Maple is an object which has so-called last_name_eval rules for its evaluation. See the last_name_eval help-page. So when you enter just the name, then all you get back is that name. You can view the underlying array which is assigned to the name using the evalm, eval, or print commands. For example,Now, the linalg package is officially deprecated in Maple 13. It's recommended replacement is the LinearAlgebra package (introduced in Maple 6, ten years ago). The LinearAlgebra package is for a Matrix or a Vector (not capitalization). The Matrix and Vector objects do not have last_name_eval, in contrast to matrix and vector. For example,
One last thing. By default only Matrices and Vectors of size <11 get their contents explicitly displayed. You can adjust that with a new cutoff at size 50, say, like this,