if (is_ex_exactly_of_type(x, numeric))
return csgn(ex_to_numeric(x));
- if (is_ex_exactly_of_type(x, mul)) {
+ else if (is_ex_exactly_of_type(x, mul)) {
numeric oc = ex_to_numeric(x.op(x.nops()-1));
if (oc.is_real()) {
if (oc > 0)
// csgn(-42*I*x) -> -csgn(I*x)
return -csgn(I*x/oc).hold();
}
- }
-
+ }
+
return csgn(x).hold();
}