private void newtonAlg(double point) {
        int count = 1;
        double step = point;
        double nextStep = point - calcValue(point)/calcDerivative(point);
        double epsilon = Math.pow(10, -7);
        while (Math.abs(nextStep - step) > epsilon) {
            count++;
            step = nextStep;
            nextStep = step - calcValue(step)/calcDerivative(step);
        }
        System.out.println("Step №" + count + ", Root = " + nextStep);
    }