## Secant Method (secant_method)

버전 7.2.0 (412 KB) 작성자:
Secant method for finding the root of a univariate, scalar-valued function.

다운로드 수: 271

업데이트 날짜: 2022/10/17

GitHub에서 호스트

# `secant_method`

Secant method for finding the root of a univariate, scalar-valued function.

## Syntax

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

## Description

`x = secant_method(f,x0)` returns the root of a function specified by the function handle `f`, where `x0` is an initial guess of the root.

`x = secant_method(f,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] = secant_method(__)` also returns the number of iterations (`k`) performed of the secant method.

`[x,k,x_all] = secant_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.

### 인용 양식

Tamas Kis (2023). Secant Method (secant_method) (https://github.com/tamaskis/secant_method-MATLAB/releases/tag/v7.2.0), GitHub. 검색됨 .

개발 환경: R2021b
모든 릴리스와 호환
##### 플랫폼 호환성
Windows macOS Linux

### Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
7.2.0

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

7.1.0

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

7.0.1

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

7.0.0

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

6.1.2

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

6.1.1

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

6.1.0

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

6.0.2

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

5.2.0

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

5.1.1

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

5.1.0

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

5.0.1

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

4.0.1

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

4.0.0

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

3.0.8

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

3.0.7

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

3.0.6

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

3.0.5

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

3.0.4

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

3.0.3

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

3.0.2

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

3.0.1

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

3.0.0

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

2.0.2

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

2.0.1

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

2.0.0

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

1.1.7

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

1.1.6

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

1.1.5

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

1.1.4

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

1.1.0

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

1.0.4

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

1.0.3

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

1.0.2

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

1.0.1

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

1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.