Description Usage Arguments Value Author(s) See Also Examples
View source: R/solve_quadratic.R
Solves for real-valued roots to the quadratic equation ax^{2} + bx + c = 0.
1 | solve_quadratic(a, b, c)
|
a, b, c |
Coefficients in the quadratic equation ax^{2} + bx + c = 0. |
solve_quadratic
returns a list, which includes the following two objects:
flag |
Indicates the number of distinct real roots to the quadratic equation. It can be one of |
x |
Real root(s) to the quadratic equation. If
|
Qiansheng Zhu
1 2 3 | solve_quadratic(1, 2, 1)
solve_quadratic(1, 2, 2)
solve_quadratic(0, 2, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.