quad_roots | R Documentation |

Compute the roots of a quadratic equation

```
quad_roots(a, b, c)
```

`a` |
coefficient of the quadratic term |

`b` |
coefficient of the linear term |

`c` |
coefficient of the constant term |

`quad_roots`

computes the roots of a quadratic equation of the form `ax^2 + bx + c = 0`

.

vector with the two roots

```
quad_roots(1, -8, 12)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.