Filter löschen
Filter löschen

How to define each of the following functions and have Matlab compute the indicated derivative, and the value of the derivative for the specified inputs.

1 Ansicht (letzte 30 Tage)
1) f(x)=x^7-3x^5+5x^4+3; f'''(x); x=1:5
2) g(x)=e^(xsinx)+2ln(x^2+1); g''(x); x=-pi:pi/4:pi
3) h(x,y)=(x^2+y^2)/((x+y)^2); h(xy)(x,y);e valuate at all pairs(1,1),(2,2),(3,3),(4,4),(5,5)
4) t(x,y,z)=(x^3)(y^2)(z)+((x^2)+(y^2)+(z^2))^(1/2); t(xyz)(x,y,z); evaluate at the eight vertices of the cube with coordinates atx=+-1, y=+-1, z=+-1

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Okt. 2016
Example:
syms p(x,y,z)
p(x,y,z) = x^3 * sin(y) * exp(z);
dpxyz = diff(p,x,y,z);
r = subs(dpxyz(x,y,z), {x, y, z}, {linspace(-5,5,10), 1:3:30, logspace(-3,-1,10)})

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by