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12*a*e)^3))))))/(12*a) The quartic formula gives the solutions of a*x^4+b*x^3+c*x^2+d*x+e=0 for real numbers a, b, c, d, e with a!=0. Directions: Take s=-1,1 and t=-1,1. Use real cube roots if possible, and principal roots otherwise.