From: Barton W. <wi...@un...> - 2015-06-01 20:50:37
|
1. Experiment with replacing ev(b_vec[i,1], map(lambda([avar], avar=0), vars)) with subst(map(lambda([avar], avar=0), vars), b_vec[i,1]) . The subst function has clean semantics, but ev doesn't. 2. Likely b_vec and c_mat should be declared local; see for example, Robert Dodier<http://search.gmane.org/?author=Robert+Dodier&sort=date> | 19 Jun 16:50 2008 on http://blog.gmane.org/gmane.comp.mathematics.maxima.general/month=20080601/page=36 --Barton > complete_square_alt_form:0$ > complete_square(expr, vars):=block([a_const:expr, b_vec, c_mat, c_mat_inv, new_const, offset, x], ... |