The Sage show Command

Description

Here, we will have Sage print one of the solutions to the following quartic function in a nice mathematical format using the show command.

(1)
\begin{equation} x^4 + x^3 + x^2 + x - 4 = 0 \end{equation}

Sage Cell

Code

f(x) = x^4 + x^3 + x^2 + x - 4
answers = solve(f(x) == 0, x)
show(answers[2])

Options

None

Tags

Primary Tags—Sage: Formatting output

Secondary Tags—

Related Cells

Attribute

Permalink:

Author: T. Judson

Date: 23 Mar 2019 21:22

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License