
val - value of an expression (obsolete)

Calling sequence:
val(expr)

Parameter:

expr   --  expression

Summary:

The function val has become unnecessary with MuPAD version 1.2 and is
only included here in order to support compatability. It will not be included

in future versions.                                                 ! !

val replaces all identifiers in the expression expr by their values and returns
the corresponding expression, which is not further evaluated. Especially the
depth of substitution is not taken into consideration.  Thus, the resulting
expression is also not simplified. The only exceptions are sets: after execution
of val, double set elements are removed. val is a kernel function.

>>  a:=0: val(a*b+4+0);

     0*b + 4 + 0

>>  a:=b: val({a, b, a*0});

      {b, b*0}

See also:  eval, hold

