Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Arrays/Dao/arrays.dao
Normal file
10
Task/Arrays/Dao/arrays.dao
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# use [] to create numeric arrays of int, float, double or complex types:
|
||||
a = [ 1, 2, 3 ] # a vector
|
||||
b = [ 1, 2; 3, 4 ] # a 2X2 matrix
|
||||
|
||||
# use {} to create normal arrays of any types:
|
||||
c = { 1, 2, 'abc' }
|
||||
|
||||
d = a[1]
|
||||
e = b[0,1] # first row, second column
|
||||
f = c[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue