From: Robert D. <rob...@gm...> - 2024-07-12 01:31:47
|
Eduardo, It might make it possible to predict what's going to happen with a macro by remembering that a macro is an otherwise-ordinary Maxima function which quotes its arguments, and its return value is evaluated. You might be able to get more insight into the results by calling macroexpand on the macro calls of interest, e.g. macroexpand(mkmatrix(...)). I am guessing that you ended up going down this road because makelist has nonstandard evaluation, and something got evaluated too much or too little -- did I guess correctly? You might be able to get the results you want from the built-in functions create_list (which allows iterating over two or more variables) and genmatrix (which allows iterating over two variables). Hope this helps, Robert |