From: HORMIS on
How to solve a quadratic equation numerically. Is there any
inbuilt function?. Now iam using our old
(-b+(b^2-4*a*c)^.5)/(2*a) method. Iam using Matlab 6.5.
From: Prash on
"HORMIS " <hormisjv(a)gmail.com> wrote in message <g3d23d$o59
$1(a)fred.mathworks.com>...
> How to solve a quadratic equation numerically. Is there
any
> inbuilt function?. Now iam using our old
> (-b+(b^2-4*a*c)^.5)/(2*a) method. Iam using Matlab 6.5.
yes, go the matlab help file (pdf)all the functions
regarding the equation are given there.
From: Srikanth on
Look at roots - gives the solution to a polynomial function
From: Ashwini Deshpande on
"HORMIS " <hormisjv(a)gmail.com> wrote in message
<g3d23d$o59$1(a)fred.mathworks.com>...
> How to solve a quadratic equation numerically. Is there any
> inbuilt function?. Now iam using our old
> (-b+(b^2-4*a*c)^.5)/(2*a) method. Iam using Matlab 6.5.

Hai,

Have a look at these commands,
expand
sym2poly
roots

HTH,

Ashwini


From: HORMIS on
"Ashwini Deshpande" <vd.ashwini(a)mathworks.com> wrote in
message <g3d6e6$2s1$1(a)fred.mathworks.com>...
> "HORMIS " <hormisjv(a)gmail.com> wrote in message
> <g3d23d$o59$1(a)fred.mathworks.com>...
> > How to solve a quadratic equation numerically. Is there any
> > inbuilt function?. Now iam using our old
> > (-b+(b^2-4*a*c)^.5)/(2*a) method. Iam using Matlab 6.5.
>
> Hai,
>
> Have a look at these commands,
> expand
> sym2poly
> roots
>
> HTH,
>
> Ashwini
>
>
Thanks for the replies...
Got results.
How can i exclude complex roots from this?