User Tools

Site Tools


at:tutorial:basic

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
at:tutorial:basic [2020/02/09 22:03]
elisag
at:tutorial:basic [2020/02/09 22:05] (current)
elisag
Line 230: Line 230:
 >> 21 >> 21
 </code> </code>
 +
  
  
Line 265: Line 266:
 >c >c
 >>[[1, 2, 3], [0, 0, 0], [0, 0, 0]] >>[[1, 2, 3], [0, 0, 0], [0, 0, 0]]
->def d := makeMatrix(4,4, { |i,j| if: (i == j) then: {1} else: {0}});+>def d := makeMatrix(4,4,  
 +  {|i,j| if: (i == j) then: {1} else: {0}});
 >> [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]] >> [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]
 </code> </code>
at/tutorial/basic.1581282226.txt.gz · Last modified: 2020/02/09 22:05 (external edit)