User Tools

Site Tools


gibson:teaching:fall-2016:math753:notebook-workflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
gibson:teaching:fall-2016:math753:notebook-workflow [2016/09/01 09:38]
gibson created
gibson:teaching:fall-2016:math753:notebook-workflow [2016/09/01 09:42]
gibson [Executing a line of code with shift-enter]
Line 14: Line 14:
 1. Click on the line ''​In [ ]: typeof(10)''​. The line will be highlighted with a green box, and you should see a blinking cursor after ''​typeof(10)''​. 1. Click on the line ''​In [ ]: typeof(10)''​. The line will be highlighted with a green box, and you should see a blinking cursor after ''​typeof(10)''​.
  
-2. Hold down the shift key while pressing "​enter"​ (we'll call this "​shift-enter"​). This will make the Julia computational engine execute the line of Julia code and print its return value. You should now see the following. +2. Hold down the shift key while pressing "​enter"​ (we'll call this "​shift-enter"​). This will make the Julia computational engine execute the line of Julia code and print its return value. You should now see the following. ​Note that Julia has told us that the value 10 has type Int64, i.e. 64-bit integer.
  
 {{ :​gibson:​teaching:​fall-2016:​math753:​notebookworkflow1.jpg |}} {{ :​gibson:​teaching:​fall-2016:​math753:​notebookworkflow1.jpg |}}
  
 +3. Try clicking on the ''​typeof(10)''​ line again, modifying it to read ''​typeof(10.0)'',​ and hitting shift-enter. You will see that the type of 10.0 is Float64, i.e. a 64-bit floating-point number. ​
 +
 +{{ :​gibson:​teaching:​fall-2016:​math753:​notebookworkflow2.jpg |}}
gibson/teaching/fall-2016/math753/notebook-workflow.txt · Last modified: 2016/09/02 06:24 by gibson