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

Last change on this file since 292 was 242, checked in by pinsard, 17 years ago

improvements/corrections of some *.pro headers + replace some message by some report

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