matlab find max and min of given equation

2 views (last 30 days)
Arvind Sharma
Arvind Sharma on 28 Jan 2019
Edited: madhan ravi on 28 Jan 2019
to write matlab code for this equation
f(a,y)= a^2y^2+3ya+4(a^2y-4y^4a)
df(a,y)/da=0
to find the value of constant =a from above equation
then substitute the value back to equation to find min value of F(y)
  2 Comments
Sarah Crimi
Sarah Crimi on 28 Jan 2019
Edited: madhan ravi on 28 Jan 2019
I think you need to define a and y as symbols. I got this from the attached link.
syms a y
f= a^2y^2+3ya+4(a^2y-4y^4a)
df = diff(f, a)==0;
solve(df, a)

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!