source: trunk/SRC/Interpolation/imoms3.pro @ 101

Last change on this file since 101 was 101, checked in by pinsard, 18 years ago

start to modify headers of Interpolation *.pro files for better idldoc output

  • Property svn:executable set to *
File size: 400 bytes
Line 
1;+
2;
3;-
4FUNCTION imoms3, xin
5
6  x = abs(xin)
7  y = fltarr(n_elements(x))
8
9  test1 = where(x LT 1)
10  IF test1[0] NE -1 THEN BEGIN
11    xtmp = x[test1]
12    y[test1] = 0.5*xtmp*xtmp*xtmp -xtmp*xtmp -0.5*xtmp + 1
13  ENDIF
14  test1 = where(x LT 2 AND x GE 1)
15  IF test1[0] NE -1 THEN BEGIN
16    xtmp = x[test1]
17    y[test1] = (-1./6.)*xtmp*xtmp*xtmp + xtmp*xtmp - (11./6.)*xtmp + 1
18  ENDIF
19
20  RETURN, y
21END
Note: See TracBrowser for help on using the repository browser.