EXPLAINVAL

From iMath
Revision as of 19:22, 15 October 2018 by Jrheinlaender (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

{ options } EXPLAINVAL [*] expression


Implemented in iMath since version 2.2.2.

Explanation

Try to find an equation defining the value of the expression (currently only symbols will work properly for the expression). Examine this equation, and try to find values for all variables contained in it. Explain how the value of the equation comes about by inserting the values of all variables into the equation.

Without the asterisk, EXPLAINVAL will print a line containing the following items:

  • The expression
  • The right-hand side of the equation assigning a value to the expression
  • The same right-hand side, where all variables are replaced by their values
  • The value of the expression

The asterisk will suppress the first two items.

Example

EQDEF a = 3 "m"

EQDEF b = 2 "m"

EQDEF c = a + b

EXPLAINVAL c

This will output c = a+b = (3 "m") + (2 "m") = 5 "m".

See also

PRINTVAL