source: trunk/SRC/Interpolation/imoms3.pro

Last change on this file was 325, checked in by pinsard, 17 years ago

modification of some headers (+some corrections) to prepare usage of the new idldoc

  • Property svn:keywords set to Id
File size: 486 bytes
RevLine 
[101]1;+
[125]2;
[118]3; @param xin {in}{required}
4;
[231]5; @version
6; $Id$
[118]7;
[101]8;-
[59]9FUNCTION imoms3, xin
[114]10;
11  compile_opt idl2, strictarrsubs
12;
[59]13
14  x = abs(xin)
[125]15  y = fltarr(n_elements(x))
[59]16
17  test1 = where(x LT 1)
18  IF test1[0] NE -1 THEN BEGIN
19    xtmp = x[test1]
[69]20    y[test1] = 0.5*xtmp*xtmp*xtmp -xtmp*xtmp -0.5*xtmp + 1
[59]21  ENDIF
22  test1 = where(x LT 2 AND x GE 1)
23  IF test1[0] NE -1 THEN BEGIN
24    xtmp = x[test1]
[69]25    y[test1] = (-1./6.)*xtmp*xtmp*xtmp + xtmp*xtmp - (11./6.)*xtmp + 1
[59]26  ENDIF
27
28  RETURN, y
29END
Note: See TracBrowser for help on using the repository browser.