Examples of the SIGMA processor (2)

Examples of the SIGMA processor (2)

zone 2 2 1 3 SIGMA X=ARRAY(200,0#5) 2 SIGMA A=8 sigma b=.01 3 SIGMA Y=EXP(-X)*SIN(A*X)+B*X*X gra 200 x y sigma x=array(200,0#2*pi) sigma s=sin(x) sigma s2=s/2 sigma c=cos(x) sigma c2=c/2 sigma s4=s/4 sigma c4=c/4 gra 200 s c gra 200 s2 c l gra 200 s4 c l gra 200 s c2 l gra 200 s2 c2 l gra 200 s4 c2 l gra 200 s c4 l gra 200 s2 c4 l gra 200 s4 c4 l sigma a=array(100,0#59.77) sigma nc=nco(a) sigma y=cos(a)*a sigma x=sin(a)*a gra nc x y sigma a=a*2.55555 sigma y=cos(a)*a sigma x=sin(a)*a gra nc x y

  1. The command V=ARRAY(L,x1#x2) allows to create a vector V with the length L and initialize it in the range x1,x2 .
  2. All the objects managed by SIGMA are vectors . In this example A is vector of length 1.
  3. The resulting vectors (if they don't exist) are created automatically by SIGMA (here Y ).



Last update: 96/05/24 17.24
Olivier.Couet@Cern.Ch