EQDEF: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
The starred form will suppress printing of the result. | The starred form will suppress printing of the result. | ||
For the special case of the equation label starting with <code>lib:</code>, the equation will not be erased by <code>[[CLEAREQUATIONS]]</code>. This is useful for building a library of generic equations. | For the special case of the equation label starting with <code>lib:</code>, the equation will not be erased by <code>[[CLEAREQUATIONS]]</code>. This is useful for building a [[library function|library]] of generic equations. | ||
| | | | ||
3= | 3= |
Revision as of 16:23, 26 March 2017
Syntax
@label@ { options } EQDEF [*] expression
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Define an equation. The expression must be of the form expression1 = expression2
.
The starred form will suppress printing of the result.
For the special case of the equation label starting with lib:
, the equation will not be erased by CLEAREQUATIONS
. This is useful for building a library of generic equations.
Example
@y@ EQDEF y = 3 x + 4
creates the equation and stores it for later usage under the label @y@
. iMath also remembers that the numeric value of y
can be found from this equation provided that x
is given a numeric value in some other equation.
@lib:pythagoras@ EQDEF c^2 = a^2 + b^2
creates the equation and stores it permanently. It can then be used by substituting values for a
and b
into it and solving for c
.
See also
{{{4}}}