Description Usage Arguments Value References Examples

Return the roots of a cubic equation of the form *ax^3 + bx^2 + cx + d=0*.

1 | ```
cubic(p)
``` |

`p` |
a |

A vector corresponding to the roots of the cubic equation.

W. H. Press, S.A. Teukolsky, W.T. Vetterling, B.P. Flannery (2007). *NUMERICAL RECIPES - the art of scientific computing*. Cambridge, University Press, chap 5.6, p. 227-229.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.