cauchy - Cauchy integral regarding Residuals
We are calculating the ring integral of du/(u-p) along the curve specified in vector z. The function cauchy requires the function meshgrid in my library. "meshgrid" could be replaced by the transpose of the function resuld "ndgrid".
This function is useful, when you have to decide, whether a point p is inside or outside a closed curve z. If the point p is outside, then the cauchy integral is zero, otherwise it differs from zero (depending on the direction and the number of turnarounds.
zcurve=bezier(); //Draw a closed curve x=0.1:0.1:0.9; y=x; [X,Y]=meshgrid(x,y); PZ=X + %i .*Y; W=cauchy(zcurve,PZ);
meshgrid ,