solve ((z+w)/2)^4=(w-z)/2 for w