Hola
Tengo el ejercicio hecho pero me da dos warning, he probado con valores y me los muestra
<html>
<head>
<title>Calculo de la ecuacion de segundo grado</title>
</head>
<body>
<form method ="POST" action="ecuacion.php">
Coeficiente a: <input type ="text" name ="a" size="6"><br />
Coeficiente b: <input type ="text" name ="b" size="6"><br />
Coeficiente c: <input type ="text" name ="c" size="6"><br />
<input type ="reset" value="resetear"> <br/>
<input type ="submit" value ="calcular"> <br />
</form>
<?php
@$a = $_POST['a'];
@$b = $_POST['b'];
@$c = $_POST['c'];
$neg = -1;
$menosb = $b * $neg;
$oper1 = pow($b, 2);
$oper2 = 4 * $a * $c;
$resta = $oper1 - $oper2;
$raiz = sqrt ( $resta);
$dos_a = 2 * $a;
$resultado1 = ($menosb + $raiz) / $dos_a;
$resultado2 = ($menosb - $raiz) / $dos_a;
echo "el valor de x1 es: ".$resultado1." <br />";
echo "el valor de x2 es: ".$resultado2." <br />";
?>
</body>
</html>