Skip to main content

Section 4.15 Sage

Until we can expand this section, get some ideas from Section 3.17. We will also collect a few items here, to be cleaned-up later.

For online output formats, sometimes the output of a Sage command can be overwhelming, and a bit complicated to parse. Many objects in Sage also have a representation, which can be used to create a superior output format (for some purposes). Begin a cell with the “magic”:

%display latex

Experiment with the following Sage code on the next line

integral(x^9*cos(x), x)

Boom! Very nice. Try replacing latex with None, plain, ascii_art, or unicode_art.