Piecewise linear interpolation

Find the zeros of a quadratic equation.

1 2 3 | ```
quadratic(b2, b1, b0)
quadratic2(b2, b1, b0)
``` |

`b2` |
the coefficient of the x^2 term |

`b1` |
the coefficient of the x term |

`b0` |
the constant term |

`quadratic`

and `quadratic2`

implement the quadratic
equation from standard algebra in two different ways. The
`quadratic`

function is susceptible to cascading numerical error
and the `quadratic2`

has reduced potential error.

numeric vector of solutions to the equation

Other algebra: `bilinear`

,
`cubicspline`

, `division`

,
`fibonacci`

, `horner`

,
`isPrime`

, `linterp`

,
`nthroot`

, `polyinterp`

,
`pwiselinterp`

1 2 3 4 | ```
quadratic(1, 0, -1)
quadratic(4, -4, 1)
quadratic2(1, 0, -1)
quadratic2(4, -4, 1)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.