mathematica中MeshFunction + Mesh用法

来源:百度知道 编辑:UC知道 时间:2024/06/16 22:54:08
MeshFunctions -> {(f - g) /. x -> # &} 里面参数是什么意思?
MeshFunctions ->
Function @@@ {{{x, y, z}, Re[f[x + I y]]}, {{x, y, z},
Im[f[x + I y]]}} 里面的变量是否都可用#1,#2,#3代替?
MeshFunctions -> {Function[{x, y, z}, x + y^2 - z - 2/3]} 这又是一种用法。

Mesh -> 5 表示画5条mesh,
Mesh -> {{0.}} 表示在0坐标处画mesh?
Mesh-> {x,y} 这又是什么意思?

如何将以下两个图画在同一坐标体系中?
Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]
ContourPlot[Sin[x] == Cos[y^2], {x, -3, 3}, {y, -2, 2}]
cpp_wazi能不能用汉语标注一下?

Mathematica..这个软件非常的强大。

使f'(c)=[f(b)-f(a)]/(b-a)

Lagrange[f_,a_,b_]:= Mesh [{v,u,t,c,s,q,w={}},
v=Variables[f][[1]] (*求f的自变量*);
u=D[f,v];t=((f/.v->b)-(f/.v->a))/(b-a);
s=Solve[u==t,v];
For[i=1,i<=Length[s],i++,
If[N[(v/.s[[i]])]>a&&N[(v/.s[[i]])]<b,
w=Append[w,v/.s[[i]]]
];
(*如果求出的点落在(a,b)内,则把它加入w *)
(*f=x^2+3x+2,[a,b]=[1,8]*)
Lagrange[x^2+3x+2,1,8]
(*f=t+ArcTan[t],[a,b]=[0,1]*)
Lagrange[t+ArcTan[t],0,1]

希望能有帮助。