lambda for mat_function



 *Function:* *mat_function** (f,mat)*

Returns *f(mat)*, where f is an analytic function and mat a matrix.
I have tried:

load(diag);


A:matrix([4,1,2],[0,2,-4],[0,1,6]);


mat_function(lambda([x],x^k),A);


fpow(x):=block([k],declare(k,integer),x^k);


mat_function(fpow,A);


The question is: why lambda expression doesn't work here?[?]

-- 
Tel: 023-66936158
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2785 bytes
Desc: not available
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20090306/2bb24697/attachment-0001.gif