[R] Solving quadratic equation in R

Paul Smith
Fri, 27 Jul 2012 10:30:35 -0000

On Thu, Jul 26, 2012 at 9:48 PM, Diviya Smith <diviya.smith at 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