INT n = 4; MODE V = [n]REAL; MODE TEN = [n,n]REAL; TEN m2; [20]V ma; first random(45); PROC rx = REAL: 2*next random-1; FOR j TO UPB ma DO FOR k TO n DO ma[j][k] := rx OD OD; FOR i TO n DO FOR j TO n DO m2[i,j] := 0 OD OD; FOR k TO UPB ma DO FOR i TO n DO FOR j TO n DO m2[i,j] +:= ma[k][i]*ma[k][j] OD OD OD; pnt("moments", m2); PROC pv = (V x)VOID: (FOR j TO n DO print(fixed(x[j], 12, 5)) OD; print(newline)); PROC pnv = (STRING n, V x)VOID: (print((n, newline)); pv(x)); PROC pnt = (STRING m, TEN x)VOID: (print((m, newline)); FOR j TO n DO pv(x[j,]) OD); PROC ip = (V a, b)REAL: (REAL s:=0; FOR j TO n DO s +:= a[j]*b[j] OD; s); first random(43); PROC sum = (PROC (INT)REAL pr)REAL: (REAL sm := 0; FOR j TO n DO sm +:= pr(j) OD; sm); TEN omet; FOR i TO n DO FOR j TO n DO omet[i,j] := (i