NUMVAL

From iMath
Revision as of 18:09, 10 June 2017 by Jrheinlaender (talk | contribs) (Created page with "{{Keyword | <code>NUMVAL (expression )</code> | Try to find a purely numeric value for the given expression from any equations defined previously in the document. An error...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Syntax

NUMVAL (expression )


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. 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

EQDEF x = 7

EXDEF NUMVAL(a + b) This will output 35.

See also

{{{4}}}