Programmatically create functions

June 22 2011 by Djinh 5
false
Maple

1


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

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account