matlab find max and min of given equation

3 visualizaciones (últimos 30 días)
Arvind Sharma
Arvind Sharma el 28 de En. de 2019
Editada: madhan ravi el 28 de En. de 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 comentarios
Sarah Crimi
Sarah Crimi el 28 de En. de 2019
Editada: madhan ravi el 28 de En. de 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)
madhan ravi
madhan ravi el 28 de En. de 2019
f = a^2*y^2+3*y*a+4*(a^2*y-4*y^4*a)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by