source: trunk/Interpolation/imoms3.pro @ 69

Last change on this file since 69 was 69, checked in by smasson, 18 years ago

debug + new xxx

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