float - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


verify/float

verify the equality of two floats

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

verify(expr1, expr2, float(n))

verify(expr1, expr2, float(n, opt1, opt2, ...))

Parameters

expr1, expr2

-

expressions

n

-

non-negative

opt1, opt2, ...

-

options passed to testfloat

Description

• 

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.

Examples

(1)

(2)

(3)

(4)

(5)

The first returns an error because select expects a result of type truefalse:

Error, invalid boolean expression: [false, .164e6, `ulps `]

(6)

See Also

float

testfloat

type/nonnegative

verify

verify/truefalse

 


Download Help Document