function(f,Z)=n/Z

z=0,vector(h,s,v)=vector(Im(function(f,x+i*y)),1,1)


Graph of the formula

This animation zooms in on the imaginary part of the complex inverse function.
The color is computed by:
!!ARBfp1.0

TEMP R0;

PARAM U0 = program.local[0];

PARAM C0 = {
2.000000000000000000000000000000,
1.000000000000000000000000000000,
0.000000000000000000000000000000,
0.000000000000000000000000000000
};

MUL R0.x, fragment.texcoord[0].x, U0.x;
MUL R0.y, fragment.texcoord[0].y, U0.y;
ADD R0.z, R0.x, -R0.y;
MUL R0.x, fragment.texcoord[0].x, fragment.texcoord[0].x;
MUL R0.y, fragment.texcoord[0].y, fragment.texcoord[0].y;
ADD R0.w, R0.x, R0.y;
RCP R0.x, R0.w;
MUL R0.y, R0.z, R0.x;
MOV_SAT R0.x, C0.y;
FRC result.color.x, R0.y;
MOV result.color.y, C0.y;
MUL result.color.z, C0.y, fragment.color.primary.z;
MOV result.color.w, C0.y;

END