function myfunc(x) printf('real: %d, ', ceil(log(abs(real(x^2)))/log(2))+1); printf('imag: %d\n', ceil(log(abs(imag(x^2)))/log(2))+1);