Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. In[42]:= {{2}, {3}} // MatrixForm
  2.  
  3. In[1]:= {{2}, {3}} // MatrixForm
  4.  
  5. In[2]:= ToExpression[InString[1], StandardForm, Defer] // DisplayForm
  6.  
  7. CellPrint@
  8. Cell[Cases[NotebookRead@Cells[],
  9. Cell[x_, _, _, CellLabel -> "In[42]:="] -> x][[1]], "Input"]
  10.  
  11. reprintInput[n_] := CellPrint @ Cell[
  12. BoxData[ToExpression@InString[n]],
  13. "Input"
  14. ]
  15.  
  16. $Line=41;
  17. {{2}, {3}} //MatrixForm
  18.  
  19. reprintInput[42]
Add Comment
Please, Sign In to add comment