Vector<Double> solveTwoEquationForX(double equationsValue1,double equationsValue2, double leftLimitForT, double rightLimitForT,
                                        boolean includeLeftLimitForT, boolean includeRightLimitForT ){
        Vector<Double> roots = new Vector<Double>();

        if (equationsValue1 != 1.0 || equationsValue1 != -1.0) {

        double rootT1 = Math.sqrt( equationsValue1 / (equationsValue1 - 1) );

        if ( checkRootLyingInInterval(rootT1, leftLimitForT, rightLimitForT, includeLeftLimitForT, includeRightLimitForT))
            roots.add(rootT1);

        if ( checkRootLyingInInterval( -rootT1, leftLimitForT, rightLimitForT, includeLeftLimitForT, includeRightLimitForT))
                roots.add( -rootT1);

        if (equationsValue2 != 1.0 || equationsValue2 != -1.0){
        double rootT2 = Math.sqrt( equationsValue2 / (equationsValue2 - 1) );

        if ( checkRootLyingInInterval(rootT2, leftLimitForT, rightLimitForT, includeLeftLimitForT, includeRightLimitForT))
            roots.add(rootT2);
        if ( checkRootLyingInInterval( -rootT2, leftLimitForT, rightLimitForT, includeLeftLimitForT, includeRightLimitForT))
            roots.add( -rootT2);
        }}

        return roots;
    }