Difference between revisions of "NUMVALWITH"

From iMath
Jump to: navigation, search
m
 
Line 17: Line 17:
 
|
 
|
 
4=
 
4=
[[NUMVAL]] [[QUANTITY]] [[QUANTITYWITH]] [[VAL]] [[VALWITH]] [[UNIT]] [[UNITWITH]]
+
[[NUMVAL]] [[QUANTITY]] [[QUANTITYWITH]] [[VAL]] [[VALWITH]] [[AVAL]] [[AVALWITH]] [[UNIT]] [[UNITWITH]]
 
}}
 
}}
 
[[Category:Evaluation]]
 
[[Category:Evaluation]]

Latest revision as of 19:23, 15 October 2018

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.

See also

NUMVAL QUANTITY QUANTITYWITH VAL VALWITH AVAL AVALWITH UNIT UNITWITH