r=(-3a4+16a2b-64ac+256d)/256.