- ex e7=e1.subs(lst(a==3+numeric(5)*I,b==3.2));
- if (!(is_ex_exactly_of_type(e7,power) &&
- is_ex_exactly_of_type(e7.op(0),mul) &&
- (e7.op(0).nops()==2) &&
- is_ex_exactly_of_type(e7.op(0).op(0),symbol) &&
- is_ex_exactly_of_type(e7.op(0).op(1),numeric) &&
- is_ex_exactly_of_type(e7.op(1),numeric) &&
- e7.is_equal(power((3+numeric(5)*I)*x,3.2)) )) {
+ ex e7 = e1.subs(lst(a==3+numeric(5)*I, b==3.2));
+ if (!(is_exactly_a<power>(e7) &&
+ is_exactly_a<mul>(e7.op(0)) &&
+ (e7.op(0).nops()==2) &&
+ is_exactly_a<symbol>(e7.op(0).op(0)) &&
+ is_exactly_a<numeric>(e7.op(0).op(1)) &&
+ is_exactly_a<numeric>(e7.op(1)) &&
+ e7.is_equal(power((3+numeric(5)*I)*x,3.2)) )) {