Skip to main content
\(\newcommand{\doubler}[1]{2#1} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section3Computation

The following is a chunk of Sage code. Your output format will dictate what you see next. In print, you will see expected output. In HTML you will have an executable, and editable, Sage Cell to work with. In a SageMathCloud worksheet, you will be able to execute and edit the code with all the other features of SageMathCloud. Note that if you include the expected output in your source, then you can test the example to verify that the behavior of Sage has not changed.

The following is another chunk of Sage code illustrating an "@interact." When you execute the sage cell the output area contains an interactive applet. This one let's you play with the effect of matrix multiplication on a figure.