<< nrsolve Equation Solver (eqnsolver) sesolve >>

Equation Solver (eqnsolver) >> Equation Solver (eqnsolver) > quadsolver

quadsolver

Finds the roots of a quadratic polynomial.

Calling Sequence

root=quadsolver(a,b,c)

Arguments

a

Coefficient of x^2

b

Coefficient of x^1

c

Coefficient of x^0

root

A matrix containing the two roots of the equation

Description

Returns the roots of a quadratic polynomial.

Examples

a=quadsolver(1,2,1);
        disp(a)
        b=quadsolver(1,1,1);
        disp(b)

See Also


Report an issue
<< nrsolve Equation Solver (eqnsolver) sesolve >>