Hello! I'm Roman from Germany. I wonder if someone even reads this text?
return new double[]{-p/2+Math.sqrt(p*p/4-q),-p/2-Math.sqrt(p*p/4-q)};
/\ | | Yay, Maths!