Last change
on this file since 326 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
|
Line | |
---|
1 | ;+ |
---|
2 | ; |
---|
3 | ; @param xin {in}{required} |
---|
4 | ; |
---|
5 | ; @version |
---|
6 | ; $Id$ |
---|
7 | ; |
---|
8 | ;- |
---|
9 | FUNCTION imoms3, xin |
---|
10 | ; |
---|
11 | compile_opt idl2, strictarrsubs |
---|
12 | ; |
---|
13 | |
---|
14 | x = abs(xin) |
---|
15 | y = fltarr(n_elements(x)) |
---|
16 | |
---|
17 | test1 = where(x LT 1) |
---|
18 | IF test1[0] NE -1 THEN BEGIN |
---|
19 | xtmp = x[test1] |
---|
20 | y[test1] = 0.5*xtmp*xtmp*xtmp -xtmp*xtmp -0.5*xtmp + 1 |
---|
21 | ENDIF |
---|
22 | test1 = where(x LT 2 AND x GE 1) |
---|
23 | IF test1[0] NE -1 THEN BEGIN |
---|
24 | xtmp = x[test1] |
---|
25 | y[test1] = (-1./6.)*xtmp*xtmp*xtmp + xtmp*xtmp - (11./6.)*xtmp + 1 |
---|
26 | ENDIF |
---|
27 | |
---|
28 | RETURN, y |
---|
29 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.