Fix saving lists of arrays with recent versions of numpy
[qpms.git] / tests / kidneycontour.c
blob8f4e635b7aef4c2a77bbb52d1cf85729780d8f0a
1 #include <qpms/beyn.h>
2 #include <stdio.h>
4 #define CPAIR(x) creal(x), cimag(x)
6 int main(int argc, char **argv)
8 double rRe = 2e3, rIm = 1.5e3, rounding = 0.2;
9 complex double centre = 1e3 * I;
10 size_t n = 100;
12 beyn_contour_t *c = beyn_contour_kidney(centre, rRe, rIm, rounding, n, BEYN_CONTOUR_HALFELLIPSE_IM_PLUS);
14 for(size_t i = 0; i < n; ++i)
15 printf("%g\t%g\t%g\t%g\n", CPAIR(c->z_dz[i][0]), CPAIR(c->z_dz[i][1]));
17 free(c);
18 return 0;