Ignore:
Timestamp:
07/21/06 14:47:49 (18 years ago)
Author:
navarro
Message:

english and nicer header (2a)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/CALCULS/determ2.pro

    r134 r142  
    11;+ 
    2 ; NAME:determ2 
    32; 
    4 ; PURPOSE: computes the determinant of n 2 by 2 arrays 
     3; file_comments 
     4; computes the determinant of n 2 by 2 arrays 
     5; Z2DS is an 2*2*n array 
    56; 
    6 ; CATEGORY: no DO loops and better accuracy 
     7; @categories  
     8; Without loop 
     9;  
     10; @param A {in}{required} 
     11; n element array 
     12; Defined as z2ds[0, 0, *] = z1d00 
    713; 
    8 ; CALLING SEQUENCE: 2 cases: 
    9 ;     res = determ2(z2ds) 
    10 ;     res = determ2(z1d00,z1d01,z1d10,z1d11) 
     14; @param B {in}{required} 
     15; n element array 
     16; Defined as z2ds[0, 1, *] = z1d01 
    1117; 
    12 ; INPUTS: 
    13 ;     z2ds: an 2*2*n array 
    14 ;     or 
    15 ;     z1d00,z1d01,z1d10,z1d11: the four n elements arrays 
    16 ;     defined as: 
    17 ;              z2ds[0, 0, *] = z1d00 
    18 ;              z2ds[0, 1, *] = z1d01 
    19 ;              z2ds[1, 0, *] = z1d10 
    20 ;              z2ds[1, 1, *] = z1d11 
     18; @param C {in}{required} 
     19; n element array 
     20; Defined as z2ds[1, 0, *] = z1d10 
    2121; 
    22 ; OUTPUTS: n elements array, the determinent of each 2*2 arrrays 
     22; @param D {in}{required} 
     23; n element array 
     24; Defined as z2ds[1, 1, *] = z1d11 
    2325; 
    24 ; EXAMPLE: 
     26; @returns  
     27; n elements array, the determinent of each 2*2 arrrays 
    2528; 
     29; @examples 
    2630; a=findgen(2,2,5) 
    2731; print, determ2(a) 
    2832; FOR i=0,4 DO print, determ(a[*,*,i]) ; IDL solution 
    2933; 
    30 ; MODIFICATION HISTORY: 
     34; @history 
    3135;           S. Masson (smasson@lodyc.jussieu.fr) 
    3236;           July 11th, 2002 
     37; 
     38; @version 
     39; $Id$ 
     40; 
    3341;- 
    3442FUNCTION determ2, a, b, c, d 
Note: See TracChangeset for help on using the changeset viewer.