Application of MATLAB in complex variable function