Last change
on this file since 105 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
|
Rev | Line | |
---|
[101] | 1 | ;+ |
---|
| 2 | ; |
---|
| 3 | ;- |
---|
[59] | 4 | FUNCTION 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] |
---|
[69] | 12 | y[test1] = 0.5*xtmp*xtmp*xtmp -xtmp*xtmp -0.5*xtmp + 1 |
---|
[59] | 13 | ENDIF |
---|
| 14 | test1 = where(x LT 2 AND x GE 1) |
---|
| 15 | IF test1[0] NE -1 THEN BEGIN |
---|
| 16 | xtmp = x[test1] |
---|
[69] | 17 | y[test1] = (-1./6.)*xtmp*xtmp*xtmp + xtmp*xtmp - (11./6.)*xtmp + 1 |
---|
[59] | 18 | ENDIF |
---|
| 19 | |
---|
| 20 | RETURN, y |
---|
| 21 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.