mardia {binarySimCLF}R Documentation

Quadratic Equation Solver

Description

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().

Usage

mardia(a, b, c)

Arguments

a Coefficient of x^2. Should be nonzero.
b Coefficient of x.
c Constant.

Value

Returns the appropriate root of the quadratic equation. Note that only one root is returned.

Examples

    # Example
    mardia(1,4,3)
    mardia(1,-4,3)

[Package binarySimCLF version 1.0 Index]