Learn R Programming

DnE (version 1.01)

Cubic: Cubic

Description

solve cubic equation.

Usage

Cubic(b)

Arguments

b
a four-dimensional vetor, its components are descending dimension coefficients of the equation.

Value

  • all the solution to the equation

Details

the function is used to solve an cubic equation. the parameter of this function is the coefficients of your function. if you want to solve the equation x^3+5x^2-4x+9, then the parameter should be a<-c(1,5,-4,9)

References

the function includes some other functions which have been exsisted in R

See Also

DnE-package

Examples

Run this code
require(stats)
a <- c(1,5,-4,9)
Cubic(a)
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

Run the code above in your browser using DataLab