Quantcast
Channel: MATLAB Central Newsreader - tag:"homework"
Viewing all articles
Browse latest Browse all 36

Re: Matlab Quadratic Formula

$
0
0
"Colsten Thompson" wrote in message <nrh2mr$c1q$1@newscl01ah.mathworks.com>...
> 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)

What have you done so far? What specific problems are you having with your code? This forum generally does not do homework problems for you, but we will help if you show us your work and ask specific questions about it.

James Tursa

Viewing all articles
Browse latest Browse all 36

Trending Articles