Difference between revisions of "SolveCubic Command"
From GeoGebra Manual
(add example and note) |
m |
||
Line 5: | Line 5: | ||
:Solves a given [[w:Cubic_function|cubic polynomial]] and returns a list of all solutions. | :Solves a given [[w:Cubic_function|cubic polynomial]] and returns a list of all solutions. | ||
:{{example| 1=<div><code><nowiki>SolveCubic[x³ - 1]</nowiki></code> yields { 1, <math> -\frac{1}{2} + i \frac{\sqrt{3}}{2} </math> , <math> -\frac{1}{2} - i \frac{\sqrt{3}}{2} </math> } .</div>}} | :{{example| 1=<div><code><nowiki>SolveCubic[x³ - 1]</nowiki></code> yields { 1, <math> -\frac{1}{2} + i \frac{\sqrt{3}}{2} </math> , <math> -\frac{1}{2} - i \frac{\sqrt{3}}{2} </math> } .</div>}} | ||
− | {{note| 1=<div>You will often need to simplify your answers manually, | + | {{note| 1=<div>You will often need to simplify your answers manually, e.g. <code><nowiki>SolveCubic[x³ + x² + x + 1]</nowiki></code>.</div>}} |
Revision as of 09:49, 29 July 2015
This page is about a feature that is supported only in GeoGebra 5.0. |
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} + i \frac{\sqrt{3}}{2} , -\frac{1}{2} - i \frac{\sqrt{3}}{2} } .
Note:
You will often need to simplify your answers manually, e.g.
SolveCubic[x³ + x² + x + 1]
.