图像缩略图

二分法(Bisection_Method)

版本5.4.1(290 kB) Tamas Kis
使用Bisection方法计算单变量函数的根。

159 Downloads

Updated30 Dec 2021

来自GitHub.

在github上查看许可证

B.isection_method查看文件交换的Bisection方法(Bisection_Method)

Calculates the root of a univariate, scalar-valued function using the bisection method.

句法

root = bisection_method(f,a,b)
根= bisection_method(f,a,b,opts)

描述

root = bisection_method(f,a,b)返回函数的根目录由函数句柄指定F, 在哪里一种一种ndB.定义间隔的初始猜测包含根。默认的容忍度和最大迭代次数是tol = 1e-12一种ndIMAX = 1E6., 分别。

根= bisection_method(f,a,b,opts)与上面的语法相同,但允许指定可选的求解器参数。选择is a structure that has the following fields:

  • IMAX.→最大迭代次数(默认值的)
  • return_all→如果设置为返回所有中间根估计true; otherwise, only the converged root is returned (defaults to错误的的)
  • →宽容(默认为的)
  • warningstrueif any warnings should be displayed,错误的如果没有(默认为true的)

示例和附加文档

  • 有关示例,请参见“文件交换”页面上的“示例.mlx”或“示例”选项卡。
  • “二分_Method.pdf"(也包括下载)用于技术文档。

引用

TAMAS KIS(2022)。二分法(Bisection_Method)(https://github.com/tamaskis/bisection_method-matlab/releases/tag/v5.4.1),github。检索到

马铃薯草Release Compatibility
用R2021A创建
Compatible with any release
平台兼容性
Windows 苹果系统 Linux.

社区宝藏狩猎

找到Matlab Central中的宝藏,并发现社区如何帮助您!

Start Hunting!
在此GitHub附加组件中查看或报告问题,访问github存储库
在此GitHub附加组件中查看或报告问题,访问github存储库