Vektory a matice

a={1,2,3,4}

MatrixForm[a]

a=Table[i,{i,1,4}]

b=Table[i^2,{i,1,4}]

a+b

a b

a.b

a[[1]]

Length[a]

Sum[a[[i]]*b[[i]],{i,1,Length[a]}]

Norm[a]

Sqrt[Sum[a[[i]]^2,{i,1,Length[a]}]]

x^a-1

x^a-y^b

c=Table[Sin[i]/i,{i,0.9,0.1,-0.1}]

First[c]

Last[c]

c[[5]]

Take[c,3]

Take[c,-3]

d=Take[c,{2,4}]

Part[c,{1,3,5,7}]

Drop[c,3]

Drop[c,-3]

Drop[c,{2,Length[c]-1}]

Prepend[c,0]

Append[c,1]

Insert[c,x,3]

ReplacePart[c,y,3]

a
b

spojenie=Join[a,b]

Union[a,b]

d=Intersection[a,b]

Complement[a,d]

Position[spojenie,4]

Position[spojenie,5]

Count[spojenie,1]

MemberQ[spojenie,5]

MemberQ[spojenie,16]

Sort[spojenie]

Min[spojenie]

Max[spojenie]

e=Permutations[a]

Dimensions[e]

Permutations[a]//MatrixForm

4!

A={{1,2,3},{2,3,4},{3,4,5}}

MatrixForm[A]

Table[i+j-1,{i,1,3},{j,1,3}]//MatrixForm

(B=Table[i*j,{i,1,3},{j,1,3}])//MatrixForm

Table[If[i==j,1,0],{i,1,3},{j,1,3}]//MatrixForm

IdentityMatrix[3]//MatrixForm

DiagonalMatrix[{1,2,3,4,5}]//MatrixForm