int main ( void ) { printf("\nComputing the powers of t in a polyhedral homotopy...\n"); adainit(); compute_mixed_volume(); read_and_retrieve(); adafinal(); return 0; }
int main ( void ) { char ans; printf("\nTesting the Operations in the Cells Container...\n\n"); adainit(); printf("Choose one of the following testing options :\n"); printf(" 0. read a polynomial system and compute its mixed volume;\n"); printf(" 1. read a mixed-cell configuration, test retrievals;\n"); printf(" 2. create a mixed-cell configuration interactively;\n"); printf(" 3. read a mixed-cell configuration and create start system;\n"); printf(" 4. polyhedral homotopies solve a random coefficient system;\n"); printf(" 5. test operations on integer cells container.\n"); printf("Type 1, 2, 3, 4, or 5 to make your choice : "); ans = getchar(); if(ans == '0') compute_mixed_volume(); else if(ans == '1') { scanf("%c",&ans); /* skip end of line symbol */ read_and_retrieve(); } else if(ans == '2') read_and_construct(); else if(ans == '3') { scanf("%c",&ans); read_cells_and_create_start_system(); } else if(ans == '4') { scanf("%c",&ans); read_cells_and_solve_start_system(); } else if(ans == '5') { scanf("%c",&ans); test_intcelcon(); } else printf("\nOption %c unknown. Please come again.\n\n", ans); adafinal(); return 0; }