Skip to contents

Some extra effort is dedicated to making the solution stable even when a is close to zero.

Usage

qe(a, b, c)

Arguments

a, b, c

Coefficients: ax^2 + bx + c = 0

Examples

qe(1, 3, -4)  # -4, 1
#> [1] -4  1
qe(0, 1, 2)   # Just -2
#> [1] -2