Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Bilal Ates
Bilal Ates am 10 Jul. 2020
Kommentiert: Bilal Ates am 10 Jul. 2020
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))

Antworten (1)

Steven Lord
Steven Lord am 10 Jul. 2020
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 Kommentare
Bilal Ates
Bilal Ates am 10 Jul. 2020
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 am 10 Jul. 2020
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))

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by