Let MyFunction(z) to be a complex valued function of the complex argument z.
Let z0 to be the initial point from which the search procedure starts.
by doing a projection on the hyperspace (a line in the real case) defined by two successive points z1 and z2= z1+delta_z. We find a third point which is the root of the hyperspace... By this way, we converge to a root of the original function or we stop in 2 cases :
1- change in successive points is very small (pb of precision)
2- maximum number of iterations is reached
Hoping that this program will help you.
Houacine M. (2022). Root of complex function (https://www.mathworks.com/matlabcentral/fileexchange/27139-root-of-complex-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!