Question: 2 A quadratic ( second - order polynomial ) equation a x 2 + b x + c = 0 can be solved by the

2 A quadratic (second-order polynomial) equation
ax2+bx+c=0
can be solved by the formulas
x1=-b+b2-4ac22a
x2=-b-b2-4ac22a
Write a program to solve for x in equation x2-5x+6=0. You can use the standard
library function sqrt(double) to perform square root. To use the sqrt() function, make sure you add the header file math.h
example:
double result = sqrt(4.0);
 2 A quadratic (second-order polynomial) equation ax2+bx+c=0 can be solved by

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!