mardia {binarySimCLF} | R Documentation |
Consider the quadratic equation: a x^2 + bx + c = 0. This function
returns the appropriate zero of this equation based on Mardia's formula.
The user should not use this function directly. It is called by solve2()
.
mardia(a, b, c)
a |
Coefficient of x^2. Should be nonzero. |
b |
Coefficient of x. |
c |
Constant. |
Returns the appropriate root of the quadratic equation. Note that only one root is returned.
# Example mardia(1,4,3) mardia(1,-4,3)