A root finding algorithm for complex functions based on Delves & Lyness method using Cauchy Integration Method. The search is performed in a specified search box defined by the user. The function of interest can be implemented separately with any number of arguments and accepts complex expressions. The function of interest must be analytic within the search box. Results are polished with Newton-Raphson iteration for maximum accuracy. Automatic Differentiation is required.
The AutoDiff_R2015b toolbox is required: https://www.mathworks.com/matlabcentral/fileexchange/56856-autodiff_r2015b
Mazin Mustafa (2021). Root_Finding_Cauchy_Integration_Method (https://www.mathworks.com/matlabcentral/fileexchange/68750-root_finding_cauchy_integration_method), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
To YONGCHUN LI, please present your example. The autodiff limitations are well known for special functions. However, you can replace the aurodiff with a manual expression (if needed). In addition to that, also consider the existence of branch cuts in your functions.
very nice code! but the adiff() function is do not always work for same special case