SolveCubic Command

From GeoGebra Manual
Revision as of 12:07, 27 November 2018 by Murkle (talk | contribs) (change example, add Solve(), CSolve() examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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, \frac{1}{2} (\sqrt{3} i -1) , \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.
© 2024 International GeoGebra Institute