7 |
|
* 2/2/95 Greg Ward |
8 |
|
*/ |
9 |
|
|
10 |
– |
#include <stdio.h> |
10 |
|
#include <stdlib.h> |
12 |
– |
#include <string.h> |
11 |
|
#include <math.h> |
12 |
|
#include <ctype.h> |
15 |
– |
#include <sys/types.h> |
13 |
|
|
14 |
|
#include "rtprocess.h" /* getpid() */ |
15 |
|
#include "rtmath.h" |
17 |
|
|
18 |
|
#define isdelim(c) (isspace(c) || (c)==',') |
19 |
|
|
20 |
< |
#define MAXTAB 1024 /* maximum number of data rows */ |
21 |
< |
#define MAXLINE 4096 /* maximum line width (characters) */ |
20 |
> |
#define MAXTAB 8192 /* maximum number of data rows */ |
21 |
> |
#define MAXLINE 16384 /* maximum line width (characters) */ |
22 |
|
#define OUTFMT "%.7g" /* output format conversion string */ |
23 |
|
|
24 |
|
int interpolate = 0; |
148 |
|
strcpy(ourexp, "x"); |
149 |
|
else |
150 |
|
sprintf(ourexp, "x-%g", abscissa[0]-1); |
151 |
< |
} else |
151 |
> |
} else if (fabs(abscissa[0]) < eps) |
152 |
> |
sprintf(ourexp, "x/%g+1", step); |
153 |
> |
else |
154 |
|
sprintf(ourexp, "(x-%g)/%g+1", abscissa[0], step); |
155 |
|
} else { |
156 |
|
printf("X`%s(i):select(i,", locID); |