n:(sqrt(%i)+sqrt(-%i))^11+(sqrt(%i)-sqrt(-%i))^15;

realpart(n);

imagpart(n);

z(a,b):=a+b*%i;

z(realpart(n),imagpart(n));