志强的数学题

Posted zhangbo2008

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了志强的数学题相关的知识,希望对你有一定的参考价值。

Clear["Global`*"] (*Clear all variables*)
(*
下面计算一个代数,把代数定义成为一个函数,然后给函数赋予attribute.


*)

f[x1, x1] := x0 + a1 x1 + x2
f[x1, x2] := x1 + a2 x2 + x3
f[x1, x3] := x2 + a3 x3 + x4
f[x1, x4] := x3 + a4 x4


SetAttributes[f, Orderless]

f[x1, x1]

 

x0 + a1 x1 + x2

Set::write: Tag TensorProduct in x1[TensorProduct]x1 is Protected.

x0 + a1 x1 + x2

x1[TensorProduct]x1








以上是关于志强的数学题的主要内容,如果未能解决你的问题,请参考以下文章