This preview shows page 1. Sign up to view the full content.
Unformatted text preview: D if (d >= 0) v = -1 else x1=(-B +sqrt(D))/(2*A); x2=(-B -sqrt(D))/(2*A); y1 = m*x1 +c; y2 = m*x2 +c; end e %create a vector v = [x1 y1 x2 y2]; disp(v); d end...
View Full Document
This note was uploaded on 05/01/2011 for the course HCSC 110 taught by Professor Amosjohnson during the Spring '11 term at Morehouse.
- Spring '11