User guide

10-19
run ^prog;
msym ^mstring;
10.6 Using Dot Operators with Constants
Whenyouusethoseoperatorsprecededbya'.'(dotoperators)withascalarintegercon-
stant,insertaspacebetweentheconstantandanyfollowingdotoperator.Otherwise,the
dotwillbeinterpretedaspartofthescalar;thatis,thedecimalpoint.Forexample:
let y = 1 2 3;
x = 2.<y;
willreturnxasascalar0,notavectorof0'sand1's,because
x = 2.<y;
isinterpretedas
x = 2. < y;
andnotas
x = 2 .< y;
Becarefulwhenusingthedotrelationaloperators(.<,.<=,.==,./=,.>,.>=).The
sameproblemcanoccurwithotherdotoperators,also.Forexample:
let x = 1 1 1;
y = x./2./x;
willreturnyasascalar.5ratherthanavectorof.5's,because
y = x./2./x;
isinterpretedas
Operators
Operators