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.

162 <strong>Notebooks</strong> and <strong>Documents</strong>In[24]:=This makes the current selection be the whole cell.SelectionMove@nb, All, CellDIn[25]:=This creates a new cell, and copies the current selection into it.SelectionCreateCell@nbDIn[26]:=This wraps Factor around the contents of the current cell.NotebookApply@nb, "Factor@ÉD"DIn[27]:=This evaluates the contents of the current cell, and creates a new cell to give the result.SelectionEvaluateCreateCell@nbDFunctions like NotebookWrite and SelectionEvaluate by default leave the current selectionjust after whatever material they insert into your notebook. You can then always move theSelectionMove. But functions like NotebookWrite andSelectionEvaluate can also take an additional argument which specifies where the currentselection should be left after they do their work.

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

Saved successfully!

Ooh no, something went wrong!