Write data to a file

Create a `10×3` array `A` where the first column are the `x` values `1` through `10`, the second column are the `y` values where `y(x) = sqrt(x)` and the third column are the `z` values where `z = x^2`. Write the values of `A` to file `A.dat`, one row per line. Generate a `7×11` matrix `R` of random values (uniform on `[0,1]`), and write this matrix to file `ranm.dat`.

     x = [1:10]
     A[1:10,1] = x
     A[1:10,2] = sqrt(x)
     A[1:10,3] = x^2
     write\matrix 'A.dat' A
     R = fold(ran([1:77]),7)
     write\matrix 'ranm.dat' R

Plot parametric functions