For a complex number of the form a+bi, IMSIN implements the following equation:
However, IMSIN determines if b=0 and in this case simply returns sin(a).