【发布时间】:2015-04-12 12:14:59
【问题描述】:
我已经定义了如下矩阵:
A={{1,0},{0,1}}
B={{0,1},{1,0}}
我想让mathematica 转换
{{1,2},{2,1}} 到 A+2B。
【问题讨论】:
-
你有什么问题?
-
你试过什么?由于您是新手,请阅读我们的Tour page,尤其是How do I ask a good question?。
我已经定义了如下矩阵:
A={{1,0},{0,1}}
B={{0,1},{1,0}}
我想让mathematica 转换
{{1,2},{2,1}} 到 A+2B。
【问题讨论】:
你可以从:
Solve[a A + b B == {{1, 2}, {2, 1}}, {a, b}]
{{a -> 1, b -> 2}}
【讨论】: