From: Mike V. <mic...@gm...> - 2015-06-01 21:19:49
|
Oh thank you Barton Willis, I thought block([whatever], ...) made whatever local. I never knew about local. Thank you. On Mon, Jun 1, 2015 at 1:50 PM, Barton Willis <wi...@un...> wrote: > > 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], > ... > |