NAME

cubic - cubic equation solver

SYNOPSIS

cubic [a0=] [a1=] [a2=] [a3=] [rms=] [deriv] [debug]

DESCRIPTION

cubic prints out the real roots of the cubic or lesser degree equation entered on the command line. Any non-specified terms are zero.

Roots are printed out as separate lines.

deriv causes the roots to be solved for the derivative functions. When this is used the a[4] can be set

The GNU Scientific Library Roots of Polynomial routines are used for this.

OPTIONS

a3= specifies the x^3 term.

a2= specifies the x^2 term.

a1= specifies the x term.

a0= specifies the d.c. term.

rms= is ignored without error message as a courtesy for linfit.

SEE ALSO
poly.
Program index