22 for (i = 0; i <= argc; i++)
28 int f_graph(
int argc,
const int *argt,
void **args)
32 int n = (argc - 1) / 2;
44 for (i = 1; i <= argc; i++)
49 #define X(j) (argz[2 + 2 * (j) + 0][i])
50 #define Y(j) (argz[2 + 2 * (j) + 1][i])
51 #define x (argz[1][i])
56 for (j = 0; j < n; j++)
60 for (j = 0; j < n - 1; j++)
78 for (j = 0; j < n - 1; j++) {
85 res[i] =
Y(j) + (
x -
X(j)) * (
Y(j + 1) -
Y(j)) / (
X(j + 1) -
X(j));
102 int f_graph2(
int argc,
const int *argt,
void **args)
105 DCELL *res = argz[0];
106 int n = (argc - 1) / 2;
118 for (i = 1; i <= argc; i++)
122 for (i = 0; i <
columns; i++) {
123 #define X(j) (argz[2 + (j) + 0][i])
124 #define Y(j) (argz[2 + (j) + n][i])
125 #define x (argz[1][i])
130 for (j = 0; j < n; j++)
134 for (j = 0; j < n - 1; j++)
135 if (
X(j + 1) <=
X(j))
152 for (j = 0; j < n - 1; j++) {
159 res[i] =
Y(j) + (
x -
X(j)) * (
Y(j + 1) -
Y(j)) / (
X(j + 1) -
X(j));
int f_graph2(int argc, const int *argt, void **args)
int f_graph(int argc, const int *argt, void **args)
int c_graph(int argc, int *argt)