#include #include #include int main(int argc, char *argv[]) { double a, b, g, t; double x, y, i; if (argc < 3) return 1; sscanf(argv[1], "%lf", &a); sscanf(argv[2], "%lf", &g); b = a * M_SQRT1_2; i = M_PI_2 / 1000.0; /* Summary */ fprintf(stderr, "a=%f b=%f g=%f\n", a, b, g); for (t = 0; t <= M_PI_2; t += i) { x = a * cos(t); y = b * sin(t); printf("%.8f %.8f\n", x, y); } return 0; }