EXPLAINVAL

From iMath
Revision as of 20:51, 11 November 2017 by Jrheinlaender (Talk | contribs) (Created page with "{{Keyword | <code>{ options } EXPLAINVAL [*] expression</code> | 2= Try to find an equation defining the value of the expression (currently only symbols will work prop...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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