Root of complex function

simple routine which search complex root of complex valued function

You are now following this Submission

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.
Mohamed

Cite As

Houacine M. (2026). Root of complex function (https://www.mathworks.com/matlabcentral/fileexchange/27139-root-of-complex-function), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

-format changed to "long"
-absolute function added for true root testing

1.0.0.0