Mathematica 如何用矩阵元素作为函数变量?下面是一个例子:

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 19:43:20
Mathematica 如何用矩阵元素作为函数变量?下面是一个例子:

Mathematica 如何用矩阵元素作为函数变量?下面是一个例子:
Mathematica 如何用矩阵元素作为函数变量?
下面是一个例子:

Mathematica 如何用矩阵元素作为函数变量?下面是一个例子:
In[45]:= f[x_] := x[[1]] + 2 x[[2]];
FindMinimum[{f[{x,y}],Norm[{x,y} - {1,1}] < Sqrt@5},{x,y},
Method -> "InteriorPoint"]
Out[46]= {-2.,{x -> -1.69472*10^-6,y -> -0.999999}}