s_on_the_ends(system_1_eq_1[0], system_1_eq_1[1], system_1_eq_1[2]);
    xyxy2 = get_points_on_the_ends(system_1_eq_2[0], system_1_eq_2[1], system_1_eq_2[2]);
    if(Math.abs(xyxy1[0][0] - xyxy2[0][0]) > 0.1 || 
       Math.abs(xyxy1[0][1] - xyxy2[0][1]) > 0.1 || 
       Math.abs(xyxy1[1][0] - xyxy2[1][0]) > 0.1 ||
       Math.abs(xyxy1[1][1] - xyxy2[1][1]) > 0.1) {
        var xy = solve_2(system_1_eq_1[0], system_1_eq_1[1], system_1_eq_1[2], system_1_eq_2[0], system_1_eq_2[1], system_1_eq_2[2]);
        d