roots#
Find roots of a polynomial symbolically.
Available in: math cells, REPL.
Syntax#
roots(polynomial [, variable])
Arguments and behavior#
Pass quoted expressions and variable names. Numeric assignments earlier in the note can substitute into coefficients. Results are displayed symbolic text or numbers, not objects with .evaluate methods. The example returns text.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
roots("x^2-1","x")Interactive examples could not load. You can still copy the expressions.
Expected result: [1, -1].