On Thu, Jul 26, 2012 at 9:48 PM, Diviya Smith <diviya.sm...@gmail.com> wrote: > Hi there, > > I would like to solve a simple equation in R > > a^2 - a = 8.313 > > There is no real solution to this problem but I would like to get an > approximate numerical solution. Can someone suggest how I can set this up?
Since your equation is a quadratic one, why do not you use the formula to obtain its roots? You can find the formula at: http://en.wikipedia.org/wiki/Quadratic_equation Paul ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.