![subject](/tpl/images/cats/mat.png)
Mathematics, 01.10.2019 01:20 legendman27
Write a function for computing the roots using the following function header: int compute_roots(double a, double b, double c, double& x1, double& x2) the arguments a, b, c are the coefficients of the quadratic equation, and x1 and x2 are possible computed roots of the equation (depending on the return value). the return value of this function could be one of the numbers: 0 == no roots 1 == one root 2 == two real roots 3 == infinite number of roots 4 == no real roots you should save the return value in a variable, say, nroots and use it later in a switch statement switch(nroots). do not include any input or output statement inside all input/output statements should be in main() only. (b) test your function in main() for five different quadratic equations. use the included flow chart when writing the function.
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Mathematics
![question](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 15:00
In which figure is de bc ? a. figure 1 b. figure 2 c. figure 3 d. figure 4
Answers: 1
![question](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 15:20
The vertices of a rectangle are given in the columns of the matrix . if is found to perform a transformation, what are the coordinates of the transformed rectangle? (0, 0), (0, β3), (β3, β3), (β3, 0) (0, 0), (0, 3), (3, 3), (3, 0) (0, 0), (0, 3), (β3, β3), (β3, 0) (0, 0), (0, 3), (β3, 3), (β3, 0)
Answers: 1
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 19:20
Is the product of two rational numbers irrational or rational? first, make a hypothesis by multiplying two rational numbers. then, use variables such as x=a/b and y=c/d and the closure property of integers to prove your hypothesis.
Answers: 1
You know the right answer?
Write a function for computing the roots using the following function header: int compute_roots(dou...
Questions
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/pravo.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.12.2019 21:31
![question](/tpl/images/cats/en.png)
English, 15.12.2019 21:31
![question](/tpl/images/cats/mat.png)
Mathematics, 15.12.2019 21:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.12.2019 21:31
![question](/tpl/images/cats/mat.png)
Mathematics, 15.12.2019 21:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.12.2019 21:31
![question](/tpl/images/cats/istoriya.png)
History, 15.12.2019 21:31
![question](/tpl/images/cats/himiya.png)
Chemistry, 15.12.2019 21:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/en.png)
English, 15.12.2019 21:31
![question](/tpl/images/cats/himiya.png)
Chemistry, 15.12.2019 21:31