s("both_canvas");
	}, false);

	draw_canvas("both_canvas");
}

function write_approximation_formula() {
	var approximation_formula = document.getElementById("approximation_formula");

	if(app_degree < 0) {
		approximation_formula.innerHTML = "This method only works for polynomials.";
		return;
	}

	formula_html = "<table><tr>";   // A x = B
	formula_html += "<td class=\"open_matrix\"></td>";
	formula_html += "<td>";
	formula_html += "<table>"; // A
	for(var i = 0; i < app_degree + 1; ++i) {
		formula_html +