13.07.2015 Views

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

114 <strong>Notebooks</strong> and <strong>Documents</strong>Defining Output FormatsJust as <strong>Mathematica</strong> allows you to define how expressions should be evaluated, so also it allowsyou to define how expressions should be formatted for output. The basic idea is that whenever<strong>Mathematica</strong> is given an expression to format for output, it first calls Format@exprD to find outwhether any special rules for formatting the expression have been defined. By assigning a valueto Format@exprD you can therefore tell <strong>Mathematica</strong> that you want a particular kind of expressionto be output in a special way.This tells <strong>Mathematica</strong> to format bin objects in a special way.In[1]:=Format@bin@x_, y_DD := MatrixForm@88x

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!