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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Logic : Boolean : verify : function shells

verify/function_shells

verify approximate equality between two function plots

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

verify(P, Q, function_shells(epsilon))

Parameters

P, Q

-

anything

epsilon

-

non-negative value

Description

• 

The verify(P, Q, function_shells) calling sequence verifies the approximate equality between two function plots.

• 

The parameters, P and Q, are assumed to be either PLOT data structures, sets or lists of CURVES data structures, or a CURVES data structure.

• 

The verify(P, Q, function_shells) returns true for CURVES data structures P and Q if the points of each curve fall within an epsilon shell of a linear piecewise interpolation of the points of the other curve.

  

The points in the CURVES data structure must be in order and the x-coordinates must be monotonically increasing.

• 

If P or Q are PLOT data structures or sets or lists of CURVES data structures, it checks that for each CURVES data structure in either P or Q, there exists a CURVES data structure in the other set which matches it.

• 

This procedure does not compare any other features of the PLOT or CURVES data structures.

Examples

aplotsinx,x=0..1:

bplotsinx,x=0..1,numpoints=10,adaptive=false:

cplotsinx,x=0..1,numpoints=37,adaptive=false:

dplotsinx+x10,x=0..1:

verifya,b,function_shells0.01

true

(1)

verifya,c,function_shells0.01

true

(2)

verifya,d,function_shells0.01

false,0.102500000000000,0.102320612500000,0.102500000000000,0.112570612500000

(3)

verifya,d,function_shells0.1

true

(4)

See Also

plot

verify

verify/function_bounds

verify/plot