public boolean checkRootLyingInInterval( double root, double leftLimit, double rightLimit, boolean includeLeftLimit, boolean includeRightLimit){
        if ( ( root < rightLimit || (root <= rightLimit && includeRightLimit))
           && ( root > leftLimit || (root >= leftLimit && includeLeftLimit))){
            return true;
        }
        return false;
    }