Bisection Method (bisection_method)

バージョン 6.3.0 (412 KB) 作成者: Tamas Kis
Bisection method for finding the root of a univariate, scalar-valued function.
ダウンロード: 1.2K
更新 2022/10/17

bisection_method View Bisection Method (bisection_method) on File Exchange

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

Syntax

x = bisection_method(f,a,b)
x = bisection_method(f,a,b,opts)
[x,k] = bisection_method(__)
[x,k,x_all] = bisection_method(__)

Description

x = bisection_method(f,a,b) returns the root of a function specified by the function handle f, where a and b define the initial guess for the interval containing the root.

x = bisection_method(f,a,b,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] = bisection_method(__) also returns the number of iterations (k) performed of the bisection method.

[x,k,x_all] = bisection_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). Bisection Method (bisection_method) (https://github.com/tamaskis/bisection_method-MATLAB/releases/tag/v6.3.0), GitHub. に取得済み.

MATLAB リリースの互換性
作成: R2021b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加
バージョン 公開済み リリース ノート
6.3.0

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

6.2.0

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

6.1.1

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

6.1.0

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

5.4.1

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

5.4.0

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

5.3.0

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

5.2.0

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

5.1.1

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

5.1.0.0

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

5.0.0

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

4.0.0

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

3.0.7

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

3.0.6

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

3.0.5

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

3.0.4

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

3.0.3

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

3.0.2

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

3.0.1

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

3.0.0.0

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

2.0.3

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

2.0.2

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

2.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/bisection_method-MATLAB/releases/tag/2.0.1

2.0.0.0

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

1.0.1

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

1.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。