Question: Parsed expressions don't count as polynomials?

Hi there,

I've got a weird error which kept me busy for two hours now:

I'm doing computations outside Maple and successfully read in a string, e.g.

s := "T(3)^5*T(5)^35";

Then I parse s by performing



u := subs({seq(T(i) = S[i], i = 1 .. 5)}, parse(t))

gives me

S[3]^5 * S[5]^35

Now the weird part: This works all fine if I put those command right in a Maple10-sheet.

If I however use this in a function fun() that is being read in by "read functions.maple"

then I can't do that in fun(). I get the error:

Error, (in fun) invalid input: subs received T(3)^5*T(5)^35, which is not valid for its 2nd argument

What is wrong?

Please Wait...