Question: Programmatically create functions

Hi,

 

After having Maple solve a large system of equations, I'd like to convert the resultset into functions programmatically.

 

Something along these lines:

for p in resultset do functionname=lhs(p); functionname=unapply(p); od;

 

This of course doesn't work, this assigns the function to 'll'. I tried something like this as well:

for p in resultset do functionname=lhs(p); subs(FN=functionname, FN=unapply(p)); od;

But no luck there either.

Given that a function looks like:

f:=x->expr

I want to be able to set both the 'f' and the 'expr' programmatically.

 

 

Alex

Please Wait...