## Newton's Method (newtons_method)

Versión 6.2.0 (388 KB) por
Newton's method for finding the root of a differentiable, univariate, scalar-valued function.

285 descargas

De GitHub

# `newtons_method`

Newton's method for finding the root of a differentiable, univariate, scalar-valued function.

## Syntax

`x = newtons_method(f,df,x0)`
`x = newtons_method(f,df,x0,opts)`
`[x,k] = newtons_method(__)`
`[x,k,x_all] = newtons_method(__)`

## Description

`x = newtons_method(f,df,x0)` returns the root of a function specified by the function handle `f`, where `df` is the derivative of (i.e. ) and `x0` is an initial guess of the root.

`x = newtons_method(f,df,x0,opts)` does the same as the syntax above, but allows for the specification of optional solver parameters. `opts` is a structure with the following fields:

• `k_max` → maximum number of iterations (defaults to 200)
• `return_all` → returns estimates at all iteration if set to `true` (defaults to `false`)
• `TOL` → tolerance (defaults to )

`[x,k] = newtons_method(__)` also returns the number of iterations (`k`) performed of Newton's method.

`[x,k,x_all] = newtons_method(__)` does the same as the previous syntaxes, but also returns an array (`x_all`) storing the root estimates at each iteration. This syntax requires that `opts.return_all` be set to true.

• See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.

### Citar como

##### Compatibilidad con la versión de MATLAB
Se creó con R2021b
Compatible con cualquier versión
Windows macOS Linux

### Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
6.2.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v6.2.0

6.1.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v6.1.0

6.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v6.0.2

6.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v6.0.0

5.5.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v5.5.0

5.4.1

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v5.4.1

5.4.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v5.4.0

5.3.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v5.3.0

5.2.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v5.2.0

5.1.1

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v5.1.1

5.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v5.0.2

4.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v4.0.1

4.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v4.0.0

3.0.5

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v3.0.5

3.0.3

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v3.0.3

3.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v3.0.2

3.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v3.0.1

3.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v3.0.0

2.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v2.0.2

2.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v2.0.1

2.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v2.0.0

1.1.2

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.1.2

1.1.1

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.1.1

1.1.0

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.1.0

1.0.7

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.0.7

1.0.6

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.0.6

1.0.5

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.0.5

1.0.4

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.0.4

1.0.3

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.0.3

1.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.0.2

1.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/newtons_method-MATLAB/releases/tag/v1.0.1

1.0.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.