Question

Find the gradient vector field of f.

f(x,y,z)=x^2ye^{^{y/z}}

I need Matlab Code Also

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Matlab Code:

syms x y z
f = x^2*y*exp(y/z)
gradient(f, [x, y, z])

syms x y z f = x^2*y*exp (y/z) gradient (f, (x, y, z])

Solution:

>> graddd

f =

x^2*y*exp(y/z)


ans =

2*x*y*exp(y/z)
x^2*exp(y/z) + (x^2*y*exp(y/z))/z
-(x^2*y^2*exp(y/z))/z^2

>>

Command Window >> graddd f = x^2*y*exp(y/z) ans = 2*x*y*exp(y/z) x^2*exp (v/z) + (x^2*y*exp (v/z))/z -(x^2y^2*exp(y/z))/2^2 f

Hand calculations:

zz -੦) 2 - z e xe fet gradient vector > = ? (%) ਹਰਮੰ = ਦੋ ਸz > ਜਦ ( ++ 6 = = = = ਵਿਚ। Z= (ਦੋ ਦੋ :=(ZVWਸf

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

KINDLY UPVOTE THE ANSWER IF YOU LIKED IT, IT WILL MAKE MY DAY ?

FOR ANY QUERIES COMMENT BELOW.

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Add a comment
Know the answer?
Add Answer to:
Find the gradient vector field of f. I need Matlab Code Also f(1,4, 2) = r’yey/
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT