I'm not sure it's true. If I have a mistake, can you fix it...

2 次查看(过去 30 天)
I'm not sure it's true. If I have a mistake, can you fix it
syms x y z;
f0=-4*z*exp(-x^2*y-z^2)*cos(x^2*y)-10*cos(x^2*y)*y*x^2+4*sin(x^2*y)*x^4*y^2+4*cos(x^2*y)*x^4*y^2-sin(x^2*y);
f1=int(f0,z);
f1=int(f1,y);
f1=int(f1,x);f1=simplify(int(f1,x))
f2=int(f0,z);
f2=int(f2,x);
f2=int(f2,x);
f2=int(f2,x);
f2=simplify(int(f2,y))

回答(1 个)

Steven Lord
Steven Lord 2020-7-10
f0=-4*z*exp(-x^2*y-z^2)*cos(x^2*y)-10*cos(x^2*y)*y*x^2+4*sin(x^2*y)*x^4*y^2+4*cos(x^2*y)*x^4*y^2-sin(x^2*y);
This multiplies the exponential term only by the first cosine term. That doesn't match the problem as written. You're missing a set of parentheses.
  3 个评论
Bilal Ates
Bilal Ates 2020-7-10
f0=-4*z*exp(-x^2*y-z^2)*(cos(x^2*y)-10*cos(x^2*y)*y*x^2+4*sin(x^2*y)*x^4*y^2+4*cos(x^2*y)*x^4*y^2-sin(x^2*y));
is it actually this way?
Bilal Ates
Bilal Ates 2020-7-10
syms x y z;
f0=-4*z*exp(-x^2*y-z^2)*(cos(x^2*y)-10*cos(x^2*y)*y*x^2+4*sin(x^2*y)*x^4*y^2+4*cos(x^2*y)*x^4*y^2-sin(x^2*y));
f1=int(f0,z);
f1=int(f1,y);
f1=int(f1,x);
f1=simplify(int(f1,x))
f2=int(f0,z);
f2=int(f2,y);
f2=int(f2,x);
f2=simplify(int(f2,y))
f3=int(f0,z);
f3=int(f3,y);
f3=int(f3,x);
f3=simplify(int(f3,z))

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by