automatic evaluation (27.6.01)

Guenter Fambach

I want to write the following expression to maple


unfortunately, the output from maple is


so maple has the factor 1/16 multiplicated with the others.

But now, I don’t want maple to do that step automatically, I just want


Question: How can I avoid this?

Chris Eilbeck (28.6.01)

This is a ”feature” in Maple, any pure numerical factors are merged into the expression and cannot be extracted using the factor command. However in your case your expression has algebraic factors and can be written (and saved) as


A more general trick is to multiply by a dummy algebraic variable, say K, then put K=1 at some later stage.

Douglas Wilhelm Harder (28.6.01)

If you’re looking for actual functionality, you cannot change this behaviour.

If you’re looking for display only:


or


work. In the first case you’re multiplying 1/16 by a function, the name of which is `` (which is not printed when displayed) and whose argument is 5*x^4 ... .

Otherwise, you can also use ’Standard Math’ or ’Standard Math Input’. For example, highlight your input and select Format>Convert to>Standard Math . though this is only useful for input, not output.

Robert Israel (28.6.01)

Try this:


To get rid of the invisible name  ``, you can substitute ``=1.

Helmut Kahovec (29.6.01)

Automatic distributing `*` over expressions of type `+` is a feature of Maple. The only way out is using the ``() procedure:


However, note that only `expand/`() is defined. Thus other procedures may not know how to handle ``(). You have to first expand expressions containing ``()

Stanley J Houghton (11.7.01)

I have used the empty name. Thus in your example input


this prints as you want since it contains a function call to `` in effect. However, to evaluate it you need to define `` as the identity function


Another way is to use


which doesn’t evaluate but prints correctly. Evaluation is performed by using subs(``=1,g) or by ``:=1

However, both I admit are a ”cludge”.