## Multivariate Newton’s Method (newtons_method_n)

Version 2.2.0 (295 KB) by
Newton's method for finding the root of a differentiable, multivariate, vector-valued function.

Updated 17 Oct 2022

From GitHub

# newtons_method_n Newton's method for finding the root of a differentiable, multivariate, vector-valued function.

## Syntax

x = newtons_method_n(f,J,x0)
x = newtons_method_n(f,J,x0,opts)
[x,k] = newtons_method_n(__)
[x,k,x_all] = newtons_method_n(__)

## Description

x = newtons_method_n(f,J,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:

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

[x,k,x_all] = newtons_method_n(__) 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.

## Note

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

### Cite As

Tamas Kis (2023). Multivariate Newton’s Method (newtons_method_n) (https://github.com/tamaskis/newtons_method_n-MATLAB/releases/tag/v2.2.0), GitHub. Retrieved .

##### MATLAB Release Compatibility
Created with R2021b
Compatible with any release
##### Platform Compatibility
Windows macOS Linux

### Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.2.0

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

2.1.0

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

2.0.1

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

2.0.0

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

1.0.1

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

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.