Starting with vectors


Starting with vectors

6 * Starting with vectors 6 VECTOR/CREATE VECT1(10) | Create a vector of length 10 1 VECTOR/INPUT VECT1 10 8 6 4 2 3 5 7 9 11 7 1 VECTOR/CRE VX(20) R 1. 2. 3. 4. 5. 6. 7. 8. 9. _ 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. v/cr vy(20) r 1.1 3.2 5.3 7.4 7.5 6.6 4.3 2.1 6.6 _ 11.1 16.2 18.3 19.0 17.8 16.0 12.1 9.1 6.1 3.1 6.6 8 ZON 1 2 2 VECTOR/DRAW VECT1 4 2 GRAPH 20 VX VY 4 5 graph 20 VX VY * 5 gra 20 VX VY C 3 VECT/DEL *

  1. Here we see two ways to fill a vector:
    1. V/CREATE : create a vector and, optionally, fill it.
    2. V/INPUT : allows to fill an existing vector.
    We will see other ways later.
  2. Graphic representations of vectors : VECTOR/DRAW and GRAPH .
  3. VECT/DELETE allows to delete a vector from memory. ``*'' means delete all vectors in memory. Very often in PAW a command acting on a specific kind of objects (vectors, histogram, pictures) can access the complete object set with ``*''.

    Note also:

  4. The PAW commands are case insensitive.
  5. Command abbreviations are permitted.
  6. The character ``*'' and ``|'' are used for comments.
  7. The character ``_'' is used to indicate a continuation line.
  8. The command ZONE subdivides the graphical area.


PAW TutorialLast update: 1999/04/01 14.57
Olivier.Couet@Cern.Ch