|
From: Robert D. <rob...@gm...> - 2014-09-30 02:21:35
|
On 2014-09-29, Dimiter Prodanov <dim...@gm...> wrote: > I tried this particular syntax because I want to pass named arguments. > In my hypothesis some of the arguments may not have been assigned. > > i.e. for a function f(x,y,z,w) I would like to pass only for example [x=1, > z=2] in the code. Here's one way. ev(f(x, y, z, w), [x = 1, z = 2]); => f(1, y, 2, w) > I don't know if this is possible in Maxima. at and apply looked like > good candidates for this scenario. 'at' works too. But note that the syntax is different from what you tried before. at(f(x, y, z, w), [x = 1, z = 2]); => f(1, y, 2, w) Note also you can construct 'at(...) noun expressions. best Robert Dodier |