Δ = b²-4ac

SOLUCIÓ DE L'EQUACIÓ 
DE SEGON GRAU

a = 1 (slider from -10 to 10, step 0.1)
b = 3 (slider from -10 to 10, step 0.01)
c = -10 (slider from -10 to 10, step 0.1)
disc: b^(2) - 4 * a * c
x_1: (-b + disc^(0.5)) / (2 * a)
x_2: (-b - disc^(0.5)) / (2 * a)
f: y = a * x^(2) + b * x + c
A: (x_1, 0)
B: (x_2, 0)
text4: "" + a + " x² + (" + b + ")x +(" + c + ") = 0"
text5: "Solucions:
x_1 = " + x_1 + " ,       x_2 = " + x_2 + "  "
text1: "1. ANALÍTICAMENT: 
Discriminant: " + text2 + " = " + disc + " 



2. GRAFÍCAMENT:

Punts de tall, A i B, amb l'eix x:
f(x) = 0 



x_1 =  x_A = " + x_1 + "        x_2 =  x_B  = " + x_2 + "  "
text6: "A " + A + ",    B " + B + ""