Secant method for finding the root of a univariate, scalar-valued function.
이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
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 totrue(defaults tofalse) -
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.
Examples and Additional Documentation
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
- See "Root_Finding_Methods.pdf" (also included with download) for the technical documentation.
인용 양식
Tamas Kis (2026). Secant Method (secant_method) (https://github.com/tamaskis/secant_method-MATLAB/releases/tag/v7.2.0), GitHub. 검색 날짜: .
