protected void calcNeValue() {
		// 牛顿插值公式运算
		double t = 0;
		int i, j, k;
		double result = 0.0;
		double[] x = new double[Def.N];
		double[] y = new double[Def.N];

		try {
			t = Double.parseDouble(neTTextField.getText());
		} catch (NumberFormatException e) {
			// t值输入格式错误
			JOptionPane.showMessageDialog(null, ErrMessage.T_WRONG);
			neTTextField.requestFocus();
			neTTextField.selectAll();
		}

		String xstr = neXTextField.getText();
		String ystr = neYTextField.getText();
		Scanner xs = new Scanner(xstr);
		Scanner ys = new Scanner(ystr);

		k = 0;
		while (ys.hasNextDouble()) {
			y[k] = ys.nextDouble();
			k++;
		}
		j = k;

		k = 0;
		while (xs.hasNextDouble()) {
			x[k] = xs.nextDouble();
			k++;
		}
		i = k;

		if (i != 2) {
			if (i != j) {
				JOptionPane.showMessageDialog(null, ErrMessage.NOT_MATCH);
				neXTextField.requestFocus();
				neXTextField.selectAll();
			} else {
				for (k = 0; k < i - 1; k++) {
					for (int m = k + 1; m < i; m++) {
						if (x[k] == x[m]) {
							JOptionPane.showMessageDialog(null,
									ErrMessage.NOT_MATCH);
							neXTextField.requestFocus();
							neXTextField.selectAll();
						}
					}
				}
				result = Interpolation.getValueNewton(j, x, y, t);
			}
		} else {
			if (j < 2) {
				// x与y的个数不匹配
				JOptionPane.showMessageDialog(null, "输入格式错误，请检查重输。");
				neXTextField.requestFocus();
				neXTextField.selectAll();
			} else {
				result = Interpolation.getValueNewton(j, x[0], x[1], y, t);
			}
		}

		neResultTextField.setText(result + "");
	}