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
- Fall '11
- Quadratic equation, Prime number