document.write( "Question 456779: The common algorithm for calculating the roots of a quadratic equation by the quadratic formula requires considering several special cases in your code, including consideration of special cases when one or more coefficients vanish. Write appropriate comments for this algorithm so that the comments make it easy to see the different cases and how they are handled. Write accompanying documentation to explain the algorithm. Total target answer should be no more than 2 pages\r
\n" ); document.write( "\n" ); document.write( "I need help on this ASAP
\n" ); document.write( "Tks
\n" ); document.write( "

Algebra.Com's Answer #313445 by solver91311(24713)\"\" \"About 
You can put this solution on YOUR website!
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Either share the particular \"common algorithm\" with which you are dealing, or go ask this question on a Computer Science website.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In general though, if your coefficients are a, b, and c, then the cases would be:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "1. a = 0; the code should return a message to the user that this is not a quadratic.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "2. b = 0, but a and c not equal to zero and the signs on a and c are opposite: the code should return an answer \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3. b = 0, but a and c not equal to zero and the signs on a and c are the same: the code should return either \"No solution over the reals\" or an answer of depending on whether the algorithm is designed to handle complex number roots or not.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4. b = 0 and c = 0, then x = 0.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5. a, b, and c non-zero, then:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5a. if , then and the single root has a multiplicity of 2.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5b. if \ 0\">, then \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5c. if , then the algorithm should return either \"No solution over the reals\" or an answer of depending on whether the algorithm is designed to handle complex number roots or not.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "John
\n" ); document.write( "
\n" ); document.write( "My calculator said it, I believe it, that settles it
\n" ); document.write( "
\"The

\n" ); document.write( "

\n" ); document.write( "
\n" ); document.write( "
\n" );