|
previous: algebraic operations next: plot arrays |
|
| Mathematica:
a1=Table[ Sqrt[n], {n,1,9} ]   (exact) a2 = Table[10Random[],{15}] a3 = Table[Random[Integer,{1,100}],{5},{3}] |
Matlab: a1 = sqrt(1:9) a2 = 10 * rand(size(1:15)) a3 = round(100*rand(5,3) + 0.5) |
| Maple:
seq(sqrt(n),n=1..9);
with(stats);
g := rand(1..100); |
IDL: a1 = sqrt( findgen(9)+1 ) a2 = 10 * randomu(seed, 15) a3 = fix(100*randomu(seed,5,5) + 1.5) |