Mathematica:如何评估此功能?

问题描述

我需要以2D形式评估函数,但它具有三个未知数,两个参数(x,y)和alpha。我需要评估{0,100}之间的x和y,而{0,1}之间的alpha。 函数为:f(x,y)= x ^(a)* y ^(1-a) 谢谢!

解决方法

不确定“以2D评估功能”是什么意思。一些选项

f[x_,y_,a_] := x^a y^(1 - a)

生成a不同值的图

Table[Plot3D[f[x,y,a],{x,100},{y,PlotLabel -> "a = " <> ToString@a],{a,1,.1}] //
  Partition[#,UpTo[4]] & //
  Grid

enter image description here

生成轮廓

ContourPlot3D[f[x,1},Contours -> 5]

enter image description here

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...