-- Option variable: simp Default value:
simp enables simplification. This is the standard.
simp is also an
evflag, which is recognized by the function
simp is used as an
evflag with a value
false, the simplification is suppressed only during the evaluation phase of an expression. The flag can not suppress the simplification which follows the evaluation phase.
The simplification is switched off globally. The expression
sin(1.0) is not simplified to its numerical value. The
simp-flag switches the simplification on.
(%i1) simp:false; (%o1) false (%i2) sin(1.0); (%o2) sin(1.0) (%i3) sin(1.0),simp; (%o3) .8414709848078965
The simplification is switched on again. The
simp-flag cannot suppress the simplification completely. The output shows a simplified expression, but the variable
x has an unsimplified expression as a value, because the assignment has occurred during the evaluation phase of the expression.
(%i4) simp:true; (%o4) true (%i5) x:sin(1.0),simp:false; (%o5) .8414709848078965 (%i6) :lisp $X ((%SIN) 1.0)
There are also some inexact matches for
?? simp to see them.
(%o1) true (%i2)