63.4k views
1 vote
Exercise 3.8 asked you to write a method called quadratic that solves quadratic equations and prints their roots. recall that a quadratic equation is a polynomial equation in terms of a variable x of the form a x2 + b x + c = 0. the formula for solving a quadratic equation is:

User Anomaly
by
8.0k points

1 Answer

1 vote
Given a quadratic equation which is a polynomial equation in terms of a variable x of the form ax^2+bx+c=0. The quadratic formula for solving a quadratic equation is:

x=[-b+/-√(b²-4ac)]/2a

where a,b and c are the respective coefficients as indicated in the quadratic form.
User Adam Cadien
by
7.7k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories