verify/float
verify the equality of two floats
Calling Sequence
Parameters
Description
Examples
verify(expr1, expr2, float(n))
verify(expr1, expr2, float(n, opt1, opt2, ...))
expr1, expr2
-
expressions
n
non-negative
opt1, opt2, ...
options passed to testfloat
The verify(expr1, expr2, float(n)) calling sequence returns testfloat(expr1, expr2, n).
The verify(expr1, expr2, float(n, opt1, opt2, ...)) calling sequence returns testfloat(expr1, expr2, n, opt1, opt2, ...).
See testfloat for information regarding the options and how the result is determined.
This verification is not symmetric, as expr2 = 0 causes an absolute error test to be applied by default.
The first returns an error because select expects a result of type truefalse:
Error, invalid boolean expression: [false, .164e6, `ulps `]
See Also
float
testfloat
type/nonnegative
verify
verify/truefalse
Download Help Document