Prevent evaluation



Am Montag, den 14.03.2011, 12:12 +0100 schrieb Rene Grothmann:
> Is it possible to output an expression like 2^3 as 2^3 without it being
> evaluated to 8? I tried '(2^3), but that does not work. Then I tried
> print(2^3) which just prints 8.
> 
> Thanks for hints, R.G.

The arithmetic operations in Maxima are simplifications and not
evaluations. Simplification can be switched off with option variable
SIMP. See the documentation about SIMP.

(%i1) simp:false;
(%o1) false
(%i2) 2^8;
(%o2) 2^8

In general it is not very useful to switch off simplification. It might
be interesting to hear something about your desired application.

Dieter Kaiser