Question: replace an equation inside a function

Hello,

I would like someone to help me with this issue I have.

First after some operation I found the following equation:

> m := (x(q))^2 + x(q)

and then I'm creation a function like this:

> eq := q -> m

but then maple is not substituting the equation m inside the function I created, how can I do that, I must work with functions this way and I'll be working with bigger equations but I don't want to copy/paste or type them into the function.

Thanks in advance

This has been branched into the following page(s):
Please Wait...