Question: save, read, and then substitute

July 18 2014 ber9erud 15

1

So suppose in one maple worksheet, I run:

>assume(w, real); y:=2*w;
>save y, "test.m";

 
And then I open another, and run

>read "test.m";
>subs(w=1,y);

The substitution won't work, while it works if I don't make any assumptions about the variable w.  However, in the piece of code I'm actually running (this snippet is just to illustrate the problem), I need to make the assumption that w is real for solving a system of equations (otherwise maple seems to run out of memory).  Is there a way to save my result y in such a way so that I can make substitutions for w later?

Please Wait...