Answer:
Hi, the general factorization formula, which will allow us to find the values for X of any polynomial of type Ах²⁺Вх+С.
![\frac{ -b+\sqrt{b^(2) -4ac } }{2a} and \frac{ -b-\sqrt{b^(2) -4ac } }{2a}](https://img.qammunity.org/2020/formulas/computers-and-technology/college/pifagnxlnl7pu7nil54niqf7tmzx69almf.png)
Step-by-step explanation:
This is one example taken from the C language:
int main()
{
int a,b,c,d;
float x,y;
printf("Input a: ");
scanf("%d",&a);
while (a == 0) {
printf("Input a: ");
scanf("%d",&a);
}
printf("Input b: ");
scanf("%d",&b);
printf("Input c: ");
scanf("%d",&c);
d = b*b-4*a*c;
if (d > 0) {
x = (-b+sqrt(d))/(2*a);
y = (-b-sqrt(d))/(2*a);
printf("x1 = %.2f\\",x);
printf("x2 = %.2f\\",y);
}
else if (d == 0) {
x = (-b)/(2*a);
printf("x1 = %.2f\\",x);
}
else
printf("The equation don't have solution.");
return 0;
}