option degree

option base 1

dim a(4,4), b(1,4), c(1,4)

mat a = idn(4)

print "Identity matrix a:"

mat print a

print

a(1,1)=cos(30)

a(1,2)=sin(30)

a(2,1)=-sin(30)

a(2,2)=cos(30)

print "Rotation matrix a:"

mat print a

print

b(1,1)=5:b(1,2)=10:b(1,3)=0:b(1,4)=1

print "Coordinate matrix b:"

mat print b

print

mat c=b*a

print "Rotated coordinates c:"

mat print c

My results for c are: 0,0,0,0.