function f($reponse, $nbs_ennonce)
{
    echo "Nombres de l'ennonce :{$nbs_ennonce}<br />";
    echo "<br />";
    echo "Reponse fournie : \"{$reponse}\"<br />";
    $formules_simples = f1($reponse);
    echo "<br />";
    $id_answer = insert_answer($reponse);
    echo "Formule(s) simple(s) detectee(s) : <br />";
    print_r($formules_simples);
    echo "<br />";
    echo "<br />";
    foreach ($formules_simples as $formule_simple) {
        echo "Formule : {$formule_simple['0']}<br />";
        // Operation type
        $type_d_operation = f2_1($formule_simple[0]);
        echo "Type d'operation : ";
        print_tdo($type_d_operation);
        echo "<br />";
        // Resolution type
        preg_match_all("/\\d+/", $formule_simple[0], $nbs_reponse);
        $type_de_resolution = f2_3($nbs_ennonce, $nbs_reponse[0], $type_d_operation);
        echo "Type de resolution : ";
        print_tdr($type_de_resolution);
        echo "<br />";
        // Calculation error
        $calcul_error = f2_2($nbs_reponse[0], $type_d_operation, $type_de_resolution);
        if ($calcul_error != 0) {
            echo "Contient une erreur de calcul de {$calcul_error}.<br />";
        }
        echo "<br />";
        insert_formula($id_answer, $formule_simple[0], $type_d_operation, $type_de_resolution, $calcul_error);
    }
}
 public function _print()
 {
     echo "Formule : {$this->str}<br />";
     echo "Type d'operation : ";
     print_tdo($this->op_typ);
     echo "<br />";
     echo "Type de resolution : ";
     print_tdr($this->resol_typ);
     echo "<br />";
     if ($this->miscalc > 0) {
         echo "Contient une erreur de calcul de {$this->miscalc}.<br />";
     }
     echo "Expression : {$this->formul}<br />";
     echo "<br />";
 }