PRINTAVALWITH

From iMath
Jump to: navigation, search

Syntax

{ options } PRINTAVALWITH {expression, equation|equation list }


Implemented in iMath since version 2.2.6.

Explanation

Try to find a value for the expression from any equations defined previously in the document, plus the equations given as the second argument. The expression will not be reduced to floats, e.g. square roots of rational numbers and transcendental functions will remain in the result. If you want to force a conversion to floats, use PRINTVALWITH or QUANTITYWITH instead.

Print the result as an equation with the expression on the left hand side and the value on the right hand side. This keyword is more or less a shortcut for TEXT expression = followed by EXDEF AVALWITH(expression, equation list).

Example

EQDEF a = 3

PRINTVALWITH {a^x + sin(x), x = 1/2}

This will output a^x + sin(x) = sqrt{3} + sin(1/2).

See also

PRINTVAL PRINTVALWITH PRINTAVAL