how to solve this question in Matlab

1 vue (au cours des 30 derniers jours)
Sh
Sh le 20 Fév 2021
Commenté : Sh le 20 Fév 2021
How to find an interval that containing a root of none linear function?
I think it based on intermediate value theorem but how to solve it using Matlab code
thank you .
  1 commentaire
James Tursa
James Tursa le 20 Fév 2021
What is the function?

Connectez-vous pour commenter.

Réponse acceptée

John D'Errico
John D'Errico le 20 Fév 2021
Modifié(e) : John D'Errico le 20 Fév 2021
This is now, what, the third or 4th time you asked this question? The first few times, it was explicitly about your homework assignment. But the answer is simple, though not always simple to accomplish.
  1. Evaluate the function at some pair of points.
  2. If the function has opposite signs at those two points, then you are done.
  3. If the function has the SAME sign at both points, then search for a new point which has the opposite sign from the one you already have. This is not lways trivial to accomplish, but there is no alternative.
You can accelerate the search above by evaluating the function at multiple points at once if possible. If you do so, AND if there exists any pair of points that have the opposite sign on the function value, then again you have found a bracket that must contain the root.
Again, it is not always possible to find some pair of points that bracket a root, since one can always create a black box function for which it is arbitrarily difficult to locate a bracket.
Now please stop asking this same question. And no, I will not write the code for you, since this is certainly a homework assignment based on the last three identical questions you asked.
  1 commentaire
Sh
Sh le 20 Fév 2021
i am sorry for that but i just but the qustion one time and the second qustion i delete it

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming 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