Ejemplo n.º 1
0
void calculate_perimeters(polygon_t *polygons[], int num_of_polygons) {
    int i;

    for (i = 0; i < num_of_polygons; ++i) {
        calculate_perimeter(polygons[i]);
    }
}
double IsoperimetricProblem::calculate_perimeter_error(void)    
{   
   double perimeter = calculate_perimeter();

   double perimeter_error = perimeter_goal - perimeter;

   return(perimeter_error);
}