verify/interval
verify that the first argument is a point in the interval
Calling Sequence
Parameters
Description
Examples
verify(expr1, expr2, interval(character))
expr1
-
anything, assumed to be of type algebraic
expr2
anything, assumed to be of type range(algebraic)
character
(optional) description of the character of the interval
An interval is either an open, closed, or semi-open contiguous subset of the real line.
The verify(expr1, expr2, interval(character)) calling sequence returns true if it can determine that the point expr1 is located in the interval defined by the second argument.
The options available for describing the character of the interval are: open..open, closed..closed, open..closed, and closed..open. The abbreviations open and closed are equivalent to open..open and closed..closed, respectively.
This verification is a short form for calling the appropriate forms of the verifications greater_than, greater_equal, less_than, and less_equal.
This verification is not symmetric.
If expr1 is not of type algebraic or expr2 is not of type range(algebraic), then false is returned.
verify⁡π,3..4,interval
true
verify⁡π,π..4,interval
false
verify⁡π,π..4,interval⁡closed
verify⁡4,4,3..5,4..5,interval,interval
verify⁡a,b,3..5,4..5,interval,interval
FAIL
verify⁡a,b,3..5,4..5,truefalse⁡interval,interval
verify⁡Vector⁡exp⁡1,exp⁡2,Vector⁡2..5,4..12,truefalse⁡Vector⁡interval
Given a list of coordinates, the following selects all those that fall in the interval 0.05..0.15.
select⁡verify,0.,0.,0.065391,0.065345,0.12229,0.12198,0.18627,0.18520,0.05..0.15,dummy,interval,true
0.065391,0.065345,0.12229,0.12198
See Also
signum
verify
verify/less_than
Download Help Document