Ignore:
Timestamp:
08/08/08 16:11:31 (16 years ago)
Author:
pinsard
Message:

improvements of headers (examples and results)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Matrix/union.pro

    r372 r373  
    22; 
    33; @file_comments 
    4 ; calculate the union between 2 matrices of whole numbers 
     4; find the union between 2 matrices of whole numbers 
    55; 
     6; see also <pro>difference</pro> and <pro>inter</pro>. 
     7 
    68; @categories 
    79; Calculation 
     
    1618; 
    1719; @returns 
    18 ; tableau 
    19 ; 
    20 ; @restrictions 
    21 ; The empty set is denoted by an array with the first element equal to -1. 
     20; an array containing the set of values in a and b. 
    2221; 
    2322; @restrictions  
     
    3231;   IDL> a = [2,4,6,8] 
    3332;   IDL> b = [6,1,3,2] 
    34 ;   IDL> union(a,b) = [ 1, 2, 3, 4, 6, 8]  ; Elements in either set 
     33;   IDL> res=union(a,b)  
     34;   IDL> print, res 
     35;           1           2           3           4           5           6 
     36           8 
     37; this is the list ao all elements in either sets. 
    3538; 
    3639; @history 
Note: See TracChangeset for help on using the changeset viewer.