Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Bilal Ates
Bilal Ates le 10 Juil 2020
Commenté : Bilal Ates le 10 Juil 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))

Réponses (1)

Steven Lord
Steven Lord le 10 Juil 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 commentaires
Bilal Ates
Bilal Ates le 10 Juil 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 le 10 Juil 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))

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by