SolveCubic Command

From GeoGebra Manual
Jump to: navigation, search


CAS Syntax

SolveCubic( <Cubic Polynomial> )
Solves a given cubic polynomial and returns a list of all solutions.
Example:
SolveCubic(x³ - 1) yields { 1, \mathrm{\mathsf{ \frac{1}{2} (\sqrt{3} i -1) }} , \mathrm{\mathsf{ \frac{1}{2} (\sqrt{3} (-i) -1) }} } .
Note:
Often the answers are very cumbersome, e.g. SolveCubic(x³ + x² + x + 2) in which case Solve(x³ + x² + x + 2) or CSolve(x³ + x² + x + 2) may work better for you.
© 2018 International GeoGebra Institute