NUMVALWITH: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Keyword | <code>NUMVALWITH (expression, equation|equation list )</code> | Try to find a purely numeric value for the given expression from any equations def...") |
No edit summary |
||
Line 15: | Line 15: | ||
This will output 35. | This will output 35. | ||
| | |||
4= | |||
[[NUMVAL]] [[QUANTITY]] [[QUANTITYWITH]] [[VAL]] [[VALWITH]] | |||
}} | }} | ||
[[Category:Evaluation]] | [[Category:Evaluation]] |
Revision as of 19:29, 27 June 2017
Syntax
NUMVALWITH (expression, equation|equation list )
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Try to find a purely numeric value for the given expression from any equations defined previously in the document, plus the equations given as the second argument. An error is produced if the expression does not evaluate to a number.
If any units are found in the result, a warning message will be logged and the units are removed.
Example
EQDEF a = 3 x
EQDEF b = 2 x
EXDEF NUMVALWITH(a + b, x = 7)
This will output 35.