private double calcValue(double point) {
        double value = 0;
        for (int i = 0; i < equationCoef.length; i++) {
            if (equationPower[i] != 0) {
                value = value + equationCoef[i] * Math.pow(point, equationPower[i]);
            } else {
                value = value + equationCoef[i];
            }
        }
        return value;
    }