>for j from 1 to 4 do
>print(F[i,j]=(diff(N[i,j],x)));
>od;od;
矩阵元素是x的函数 .
我想要定义新的矩阵元素
>BA[i,j]:=(diff(N[i,j],x)));
但我不能通过上面的命令用Maple做到这一点 . 有人能帮我吗 ?
1 回答
1
比使用循环更好的只是 BA:= diff~(N,x) . ~ 可以附加到任何运算符以表示"apply the operator to each member of the container and return a new container containing the modified members."
1 回答
比使用循环更好的只是 BA:= diff~(N,x) . ~ 可以附加到任何运算符以表示"apply the operator to each member of the container and return a new container containing the modified members."
另外,请注意使用 print . 它的唯一目的是从计算的中间(而不是结束)在屏幕上打印东西 . 它不能用于更改任何存储的值 . 好的程序使用 print 非常谨慎,如果有的话 . 计算的最终结果自动显示,无需打印命令 .