subject

Write a program that asks a user for the coefficients , , and and outputs the roots of that equation. Be aware of the following:

a. Be sure that your request for input and your output both have descriptive text.
b. If the roots have an imaginary component, use when representing the imaginary term in the output. For example, you may output "3 + 7" as a root.
c. Be sure to handle the cases in which any or all coefficients are equal to zero.
d. If A != 0, there could be 2 real distinct roots, 2 real identical roots (one root of multiplicity 2), or complex roots.
e. If A = 0, we are left with + = 0, a linear equation with one root.
f. If A = B = 0, we are left with C = 0, so if user entered a non-zero value of C, write a message to the screen indicating this error.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:50, wtfcmd
Match the personality traits with their description
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
image
Computers and Technology, 22.06.2019 22:40, ihatemylife0
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
image
Computers and Technology, 23.06.2019 13:50, mrfishyyyy
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
You know the right answer?
Write a program that asks a user for the coefficients , , and and outputs the roots of that equatio...

Questions in other subjects:

Konu
Mathematics, 02.04.2021 22:50
Konu
Mathematics, 02.04.2021 22:50
Konu
Chemistry, 02.04.2021 22:50