[R] solve the quadratic equation ax^2+bx+c=0
Mike Prager
Mike.Prager at noaa.gov
Thu Nov 10 02:33:06 CET 2005
The inquiry below and similar ones seem a lot like homework problems.
They are distinguished by showing no evidence of the OP's ever having
read a manual and also by being problems of apparently pedagogical
interest. The Fortran group (comp.lang.fortran) has a long tradition of
not giving more than the broadest of hints in response to such
inquiries, and I would encourage r-help readers to consider doing the same.
MHP
Yuying Shi wrote:
>If I have matrics as follows:
>
>
>>a <- c(1,1,0,0)
>>b <- c(4,4,0,0)
>>c <- c(3,5,5,6)
>>
>>
>How can I use R code to solve the equation ax^2+bx+c=0.
>thanks!
> yuying shi
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list