taylor, and only taylor series



if (hipow(subst(1/z,x,%),z) >=1 then Laurent else Taylor.

or something like that might work.