#include
int main() {
array double x[11], x2[2][3];
array float y[11];
array complex z[11];
int n;
logspace(x, 0, 2);
printf("x = %f\n", x);
logspace(x2, 0, 2);
printf("x2 = %f\n", x2);
n = logspace(x, 0, 2);
printf("n = %d\n", n);
n = logspace(y, 0, 2);
printf("y = %f\n", y);
logspace(z, 0, 2);
printf("z = %f\n", z);
}

x = 1.000000 1.584893 2.511886 3.981072 6.309573 10.000000 15.848932 25.118864
39.810717 63.095734 100.000000
x2 = 1.000000 2.511886 6.309573
15.848932 39.810717 100.000000
n = 11
y = 1.000000 1.584893 2.511886 3.981072 6.309574 10.000000 15.848932 25.118864
39.810719 63.095734 100.000000
z = complex(1.000000,0.000000) complex(1.584893,0.000000) complex(2.511886,0.000000)
complex(3.981072,0.000000) complex(6.309574,0.000000) complex(10.000000,0.000000)
complex(15.848932,0.000000) complex(25.118864,0.000000) complex(39.810719,0.000000)
complex(63.095734,0.000000) complex(100.000000,0.000000)