Quantcast
Viewing latest article 2
Browse Latest Browse All 36

Matlab Quadratic Formula

Create an m?file that does the following:

Prompt a user to give the coefficients of a polynomial (ax2+bx+c).
Upon entry, the m?file should compute the roots of the polynomial using the quadratic formula.
Store these roots as two variables as root_1 and root_2 and let them display (i.e. no semicolons).

Note: Use coefficients to get real roots (make c negative to insure)

Viewing latest article 2
Browse Latest Browse All 36

Trending Articles