POSVARDEF: Difference between revisions

From iMath
Jump to navigation Jump to search
(Created page with "{{Keyword | <code>POSVARDEF symbol</code> | Defines the symbol to be positive (and real-valued). This allows iMath to evaluate some functions immediately, e.g. absolute va...")
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
|
|
Defines the symbol to be positive (and real-valued). This allows iMath to evaluate some functions immediately, e.g. absolute value.
Defines the symbol to be positive (and real-valued). This allows iMath to evaluate some functions immediately, e.g. absolute value.
Note that the positive, real-valued symbol is not identical with another symbol that has the same name but a different domain. To avoid confusion, always define your symbols as positive before you use them for the first time.
|
|
3=
3=
<code>POSVARDEF x</code> tells iMath that <code>x</code> always has a positive real value and therefore <code>abs(x) = x</code>.
<code>POSVARDEF x</code> tells iMath that <code>x</code> always has a positive real value and therefore <code>abs(x) = x</code>.
|
4=
[[REALVARDEF]]
}}
}}
[[Category:Definition]]
[[Category:Declaration]][[Category:Definition]]

Latest revision as of 20:38, 21 February 2025

Syntax

POSVARDEF symbol


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Defines the symbol to be positive (and real-valued). This allows iMath to evaluate some functions immediately, e.g. absolute value.

Note that the positive, real-valued symbol is not identical with another symbol that has the same name but a different domain. To avoid confusion, always define your symbols as positive before you use them for the first time.


Example

POSVARDEF x tells iMath that x always has a positive real value and therefore abs(x) = x.

See also

REALVARDEF