PRINTAVAL: Difference between revisions

From iMath
Jump to navigation Jump to search
(Created page with "{{Keyword | <code>{ options } PRINTAVAL expression</code> | 2= Try to find a value for the expression from any equations defined previously in the document. The expres...")
 
mNo edit summary
Line 18: Line 18:
|
|
4=
4=
[[PRINTAVALWITH]]
[[PRINTVAL]] [[PRINTVALWITH]][[PRINTAVALWITH]]  
|
|
5=2.2.6
5=2.2.6
}}
}}
[[Category:Evaluation]]
[[Category:Evaluation]]

Revision as of 19:23, 17 October 2018

Syntax

{ options } PRINTAVAL expression


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. 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 PRINTVAL or QUANTITY 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 AVAL(expression).

Example

EQDEF a = 3 x

EQDEF x = 1 over 2

PRINTVAL a^x+sin(x)

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

See also

PRINTVAL PRINTVALWITHPRINTAVALWITH