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/different.pro

    r372 r373  
    22; 
    33; @file_comments 
    4 ; calculate the different elements of 2 matrix of positive whole numbers. 
     4; find the different elements of 2 matrixes of positive whole numbers. 
     5; 
     6; see also <pro>union</pro> and <pro>inter</pro>. 
    57; 
    68; @categories 
     
    1618; 
    1719; @returns 
    18 ; tableau 
     20; an array containing the set of values in only a. 
    1921; 
    20 ; @restrictions 
    2122; The empty set is denoted by an array with the first element equal to 
    2223; -1. 
     
    3233;   IDL> a = [2,4,6,8] 
    3334;   IDL> b = [6,1,3,2] 
    34 ;   IDL> different(a,b) = [ 4, 8]         ; Elements in A but not in B 
     35; 
     36;   IDL> res=different(a,b)  
     37;              4           8 
     38; Right because 4 and 8 are in a but not in b ! 
     39; 
     40;   IDL> res=different(b,a) 
     41;   IDL> print,res 
     42;              1           3 
     43; 
     44; Right because 1 and 3 are in b but not in a ! 
    3545; 
    3646; @history 
Note: See TracChangeset for help on using the changeset viewer.