x = fzero(fun, x0)
[x, fval, exitflag, output] = fzero(fun, x0, options)
x = fzero(problem)
| Paramètre | Description |
|---|---|
| fun | fonction scalaire. |
| x0 | valeur initiale scalaire ou intervalle de deux points encadrant un zéro. |
| options | options du solveur. |
| Paramètre | Description |
|---|---|
| x | zéro estimé. |
| fval | valeur de la fonction en x. |
| exitflag | indicateur de terminaison. |
| output | diagnostics. |
fzero utilise une méthode de Brent-Dekker avec encadrement. Si x0 est scalaire, Nelson recherche un intervalle avec changement de signe autour de x0. Une structure problem peut contenir les champs objective, x0 et options.
[x, fval] = fzero(@(x) x^2 - 4, [0 5])
| Version | Description |
|---|---|
| 2.0.0 | version initiale |