EXPLAINVAL: Difference between revisions
Jump to navigation
Jump to search
(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...") |
No edit summary |
||
Line 26: | Line 26: | ||
| | | | ||
4= | 4= | ||
[[PRINTVAL]] | |||
| | | | ||
5=2.2.2 | 5=2.2.2 | ||
}} | }} | ||
[[Category:Evaluation]] | [[Category:Evaluation]] |
Latest revision as of 19:22, 15 October 2018
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"
.