This preview shows page 1. Sign up to view the full content.
Unformatted text preview: '); %after solving A = (a^2+b^2); B = (2*m*b^2); C = (b^4-(a^2)*(b^2)); D = B^2-(4*A*C); %assume that square root of quadratic is positive x1=(-B +sqrt(D))/(2*A); x2=(-B -sqrt(D))/(2*A); y1 = m*x1 +c; y2 = m*x2 +c; %create a vector v = [x1 y1 x2 y2]; disp(v); d...
View Full Document
- Spring '11