Are there any special cases algorithm example problem

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ots are where this formula is equal to 0, ax2 + bx + c = 0 Ex. a=1,b=0,c=1 x2 1 = (x1) * (x+1) = 0 roots at x=1,x=1 Algorithm: Roots of Quadratic Formula How do we find the roots? Quadratic equation Does this formula always work? Algorithm: Roots of Quadratic Formula Input: the coefficients a,b,c Output: the roots of ax2 + bx + c What cases do we need to handle? Algorithm: Roots of Quadratic Formula What cases do we need to handle? Normal But what special cases do we need to be careful of? Two distinct roots One root No roots 4ac > b2 a=0 (straight...
View Full Document

This note was uploaded on 09/06/2013 for the course COMPUTING FE1008 taught by Professor Johnarnold during the Fall '11 term at Mapúa Institute of Technology.

Ask a homework question - tutors are online