This preview shows page 1. Sign up to view the full content.
Unformatted text preview: b = coeff(2); c = coeff(3); x1 = (-b + sqrt(b^2-4*a*c))/(2*a); x2 = (-b - sqrt(b^2-4*a*c))/(2*a); disp('first real part') disp(real(x1)) disp('first imaginary part') disp(imag(x1)) disp('second real part') disp(real(x2)) disp('second imaginary part') disp(imag(x2)) price_A=[values]; price_B=[values]; length(find(price_A>price_B) ans = days price a was above price b...
View Full Document
This note was uploaded on 04/02/2008 for the course ENGINEERIN 127 taught by Professor Finch during the Spring '08 term at Rutgers.
- Spring '08