* @param args the arguments; only args[0](inumber) is significant.
* @param ctx the function context.
* @return the argument theta, an angle expressed in radians.
*/
public static Object engineerImargument(Object[] args, XelContext ctx) {
Complex inumber = UtilFns.validateComplex(args[0].toString());
double real = inumber.getReal();
double img = inumber.getImaginary();
/* original math formula:
* theta = arc tangent(img/real)
* but since MSFT IMARGUMENT() return value is (-pi, pi]
* java.lang.math atan() return value is (-pi/2, pi/2]
* so instead use atan2()