[0] - cur_x, sxy[1] - cur_y);
    results.innerHTML += "<br>";
    results.innerHTML += "Tolerance: " + end_step_length.toFixed(3) + ", real error: " + error.toFixed(3);
    last_error = error;
}

function reset_solver() {
    set_solver_1();
    set_solver_2();
    draw_solver_1(0, 0, false);
    draw_solver_2(0, 0, false);
}

function radio(n) {
    for(var i = 1; i <= 3; i++){
        radio_i = document.getElementById("button_" + i);
        radio_i.disabled = false;
    }
    radio_n = document.getEleme