Find minimum points matlab

1 vue (au cours des 30 derniers jours)
Noa  Yelin
Noa Yelin le 20 Oct 2020
Commenté : Noa Yelin le 20 Oct 2020
Hey,
I need to find minimum points. I wrote this code -
syms x real
f=(x^2)-4*x+9;
d1=diff(f,1);
res=solve(d1==0);
min(vpa(res,4))
and i get the answer - is this correct? and if I want to find the Y, so what I need to do?
ans =
2.0

Réponses (1)

KSSV
KSSV le 20 Oct 2020
Modifié(e) : KSSV le 20 Oct 2020
subs(d1,res)
You will get it as zero.....so the value x = 2 is a root to d1.
Also your d1 = 2*x-4.
On solving manually 2*x-4 = 0, you will get x = 2.
  5 commentaires
KSSV
KSSV le 20 Oct 2020
As your d1 is a linear equation.....you will get only one root.
Noa  Yelin
Noa Yelin le 20 Oct 2020
Thank you

Connectez-vous pour commenter.

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by